Update README.md #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16, 18] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache Cypress binary | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/Cypress | |
key: ${{ runner.os }}-cypress-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-cypress- | |
- name: Install dependencies | |
run: npm install | |
- name: Install Cypress binary | |
run: npx cypress install | |
- name: Verify Cypress binary | |
run: npx cypress verify | |
- name: Run Cypress tests | |
run: npx cypress run |