Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/nbs-int-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: NBS Int Tests

on:
workflow_dispatch:

jobs:
run-nbs-int-tests:
permissions:
id-token: write
contents: read
runs-on: ubuntu-22.04
environment: preprod

steps:
- name: Checkout main
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
ref: main

- name: Install asdf
uses: asdf-vm/actions/setup@4f8f7939dd917fc656bb7c3575969a5988c28364
with:
asdf_version: v0.18.0

- name: Cache asdf
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: |
~/.asdf
key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}

- name: Install asdf dependencies
uses: asdf-vm/actions/install@4f8f7939dd917fc656bb7c3575969a5988c28364
with:
asdf_version: v0.18.0
env:
PYTHON_CONFIGURE_OPTS: --enable-shared

- name: Cache Virtualenv
id: cache-venv
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: |
.venv
key: ${{ runner.os }}-venv-${{ hashFiles('pyproject.toml') }}

- name: Install Dependencies
if: steps.cache-venv.outputs.cache-hit != 'true'
run: make install

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@a7f0c828ac76e0d049e34c920172c60f579f9eb3
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/Eligibility-Signposting-API-E2E-Regression-Tests
aws-region: eu-west-2

- name: Run NBS Integration Tests
run: make run-nbs-preprod-tests