main #21
1 changed files with 13 additions and 2 deletions
|
@ -46,6 +46,12 @@ jobs:
|
|||
path: ~/.cache/Cypress
|
||||
key: cypress-${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}
|
||||
|
||||
- name: Cache Node modules
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: node_modules
|
||||
key: node-modules-${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}
|
||||
|
||||
- name: Install Cypress
|
||||
run: npx cypress install
|
||||
|
||||
|
@ -78,11 +84,16 @@ jobs:
|
|||
name: build
|
||||
path: dist
|
||||
|
||||
- name: Restore Node modules cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
name: node-modules
|
||||
|
||||
- name: Run unit tests
|
||||
run: npm run test:unit
|
||||
|
||||
cypress-tests:
|
||||
name: Run E2E tests
|
||||
name: Run E2E tests (${{ matrix.browser }})
|
||||
runs-on: ubuntu-latest
|
||||
needs: install
|
||||
strategy:
|
||||
|
@ -109,7 +120,7 @@ jobs:
|
|||
run: sudo apt-get update && sudo apt-get install -y ${{ env.APT_PACKAGES }}
|
||||
|
||||
- name: Cypress run (${{ matrix.browser }})
|
||||
uses: cypress-io/github-action@v6
|
||||
uses: https://github.com/cypress-io/github-action@v6
|
||||
with:
|
||||
start: npm start
|
||||
browser: ${{ matrix.browser }}
|
||||
|
|
Loading…
Add table
Reference in a new issue