diff --git a/.github/workflows/build-and-test-expired-token.yml b/.github/workflows/build-and-test-expired-token.yml index 03f19707..c4cfba54 100644 --- a/.github/workflows/build-and-test-expired-token.yml +++ b/.github/workflows/build-and-test-expired-token.yml @@ -34,13 +34,13 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-node@v2-beta + - uses: actions/setup-node@v3 with: node-version: '14' - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v3 with: java-version: '19' # The JDK version to make available on the path. @@ -52,7 +52,7 @@ jobs: node --version - name: Cache local Maven repository - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} @@ -60,7 +60,7 @@ jobs: ${{ runner.os }}-maven- - name: Cache npm - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} @@ -94,31 +94,32 @@ jobs: npm run cyServices:start:integration-apps cd ../../ -# - name: Run Cypress tests -# uses: cypress-io/github-action@v2 -# with: -# working-directory: skills-client-integration/skills-int-e2e-test -# record: true -# parallel: false -# group: 'skills-client expired token tests' -# tag: "${{ github.workflow }}" -# spec: cypress/integration/timeout.specs.js -# env: 'timeout=true' -# env: -# # pass the Dashboard record key as an environment variable -# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} -# # pass GitHub token to allow accurately detecting a build vs a re-run build -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Run Cypress tests - run: | - cd skills-client-integration/skills-int-e2e-test - npm run cy:run:timeout - cd ../../ + - name: Run Cypress tests + uses: cypress-io/github-action@v5 + with: + working-directory: skills-client-integration/skills-int-e2e-test + record: true + parallel: false + group: 'skills-client expired token tests' + tag: "${{ github.workflow }}" + spec: cypress/integration/timeout.specs.js + env: 'timeout=true' + browser: chrome + env: + # pass the Dashboard record key as an environment variable + CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} + # pass GitHub token to allow accurately detecting a build vs a re-run build + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +# - name: Run Cypress tests +# run: | +# cd skills-client-integration/skills-int-e2e-test +# npm run cy:run:timeout +# cd ../../ - name: upload result artifacts if: ${{ always() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: result artifacts path: |