Add legacy-peer-deps for Cypress #328
Workflow file for this run
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: Angular | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18, 20] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install latest Chrome | |
run: | | |
sudo apt update | |
sudo apt --only-upgrade install google-chrome-stable | |
google-chrome --version | |
- name: Install dependencies | |
run: npm ci | |
- name: Run unit tests | |
run: xvfb-run npm test -- --watch=false | |
- name: Run integration tests | |
uses: cypress-io/github-action@v5 | |
with: | |
start: npm start | |
install: false | |
wait-on: 'http://[::1]:4200' |