Skip to content

Commit 243c2a0

Browse files
committed
try node setup and token env
Signed-off-by: Mark Slowey <mark.slowey1@nhs.net>
1 parent e2a260a commit 243c2a0

1 file changed

Lines changed: 12 additions & 16 deletions

File tree

.github/workflows/stage-4-acceptance.yaml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,19 @@ jobs:
5757
# run: |
5858
# echo "Deploying application..."
5959

60-
test-contract:
61-
name: "Contract test"
62-
runs-on: ubuntu-latest
63-
# needs: environment-set-up
64-
timeout-minutes: 10
65-
steps:
66-
- name: "Checkout code"
67-
uses: actions/checkout@v5
68-
- name: "Cache node_modules"
69-
uses: actions/cache@v4
60+
- name: 'Use Node.js'
61+
uses: actions/setup-node@v6
7062
with:
71-
path: |
72-
**/node_modules
73-
key: ${{ runner.os }}-node-${{ inputs.nodejs_version }}-${{ hashFiles('**/package-lock.json') }}
74-
restore-keys: |
75-
${{ runner.os }}-node-${{ inputs.nodejs_version }}-
76-
- name: "Run contract test"
63+
node-version: '${{ inputs.nodejs_version }}'
64+
registry-url: 'https://npm.pkg.github.com'
65+
scope: '@nhsdigital'
66+
67+
- name: Trigger Acceptance Tests
68+
shell: bash
69+
env:
70+
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
71+
APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
72+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7773
run: |
7874
make test-contract
7975
env:

0 commit comments

Comments
 (0)