updating node requirements and build #270
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: Frontend Tests | |
on: | |
push | |
jobs: | |
audit-deps: | |
runs-on: ubuntu-latest | |
name: "Check Node Dependencies for Known Security Vulnerabilities" | |
steps: | |
- name: "Checkout repo" | |
uses: actions/checkout@v4 | |
- name: "Run npm audit" | |
working-directory: ./react-frontend | |
run: npm audit --omit dev | |
check-unused-deps: | |
runs-on: ubuntu-latest | |
name: "Check for Unused Node Dependencies" | |
steps: | |
- name: "Checkout repo" | |
uses: actions/checkout@v4 | |
- name: "Install dependency and run dependency check" | |
working-directory: ./react-frontend | |
run: npm install depcheck -g && depcheck --ignores "typescript,@types/node,eslint,prettier,jest,@types/jest,stylelint" | |
run-cypress-tests: | |
runs-on: ubuntu-latest | |
name: "Run Cypress Tests" | |
container: | |
image: cypress/included:12.3.0 | |
steps: | |
- name: "Checkout repo" | |
uses: actions/checkout@v4 | |
- name: "Run Cypress end-to-end tests" | |
uses: cypress-io/github-action@v6 | |
with: | |
working-directory: ./react-frontend | |
config-file: cypress.config.actions.ts | |
build: npm run build | |
start: npm start |