Skip to content

Commit

Permalink
Use cypress cypress/browsers:latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Heimler committed May 19, 2024
1 parent f1bdecb commit 14244a0
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,20 @@ jobs:

steps:
- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
npm-feature-${{ hashFiles('package-lock.json') }}
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -46,7 +52,10 @@ jobs:
if-no-files-found: error

cypress-run-chrome:
runs-on: ubuntu-24.04
runs-on: ubuntu-22.04
container:
image: cypress/browsers:latest
options: --user 1001
name: E2E Testing (Chrome)
needs: build
steps:
Expand All @@ -64,7 +73,10 @@ jobs:

cypress-run-firefox:
name: E2E Testing (Firefox)
runs-on: ubuntu-24.04
runs-on: ubuntu-22.04
container:
image: cypress/browsers:latest
options: --user 1001
needs: build
# container:
# # https://github.com/cypress-io/cypress-docker-images
Expand Down

0 comments on commit 14244a0

Please sign in to comment.