File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 push :
66 branches :
77 - check
8- paths :
9- - ' e2e/**'
10- - ' utils/**'
118
129jobs :
1310 e2e-test :
@@ -28,27 +25,30 @@ jobs:
2825 run : npm ci --legacy-peer-deps
2926
3027 - name : Restore IMS token cache
31- uses : actions/cache@v4
28+ uses : actions/cache/restore @v4
3229 with :
3330 path : .ims-token-dev-cache.json
34- # Static cache key - expires when token is invalid (checked by imsHelper.js)
35- # Change the version number (v1) to force cache invalidation if needed
36- key : ims-token-dev-${{ github.repository }}-v1
31+ key : ims-token-dev-${{ github.run_id }}
3732 restore-keys : |
38- ims-token-dev-${{ github.repository }}-
33+ ims-token-dev-
3934
4035 - name : Run E2E Tests
4136 env :
4237 # IMS OAuth credentials
4338 IMS_CLIENT_ID : ${{ secrets.CLIENTID_STAGE }}
4439 IMS_CLIENT_SECRET : ${{ secrets.CLIENTSECRET_STAGE }}
45- IMS_TOKEN_URL : ${{ vars.IMS_TOKEN_URL_STAGE }}
40+ IMS_TOKEN_URL : ${{ vars.IMS_TOKEN_URL_STAGE }}
41+ IMS_AUTH_CODE : ${{ secrets.AUTH_CODE_STAGE }}
4642 # APIM endpoint
4743 APIM_ENDPOINT : ${{ vars.APIM_ENDPOINT_STAGE }}
48- # CI flag to use OAuth instead of aio CLI (GITHUB_ACTIONS is set automatically by GitHub)
4944 CI : true
5045 CACHE_ENV : dev
5146 run : |
5247 echo "Running E2E tests..."
5348 npm run test:e2e --verbose
54-
49+ - name : Save IMS token cache
50+ if : always()
51+ uses : actions/cache/save@v4
52+ with :
53+ path : .ims-token-dev-cache.json
54+ key : ims-token-dev-${{ github.run_id }}
You can’t perform that action at this time.
0 commit comments