second assignment #178
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: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint | |
run: npx eslint --ext .js,.jsx,.ts,.tsx . | |
- name: Compile to check syntax | |
run: npx tsc --noEmit | |
- name: Run tests | |
run: npx jest --verbose --coverage | |
- name: Build | |
run: npm run build | |
- name: Run E2E test | |
run: HEADLESS=true npm run ci |