Refactoring API, implementing coordinate computation functions, retur… #38
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: Commit Workflow | |
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" | |
run-cypress-tests: | |
runs-on: ubuntu-latest | |
name: "Run Cypress Tests" | |
container: | |
image: cypress/browsers:node18.12.0-chrome107 | |
steps: | |
- name: "Checkout repo" | |
uses: actions/checkout@v4 | |
- name: "Run Cypress tests" | |
uses: cypress-io/github-action@v6 | |
with: | |
working-directory: ./react-frontend | |
build: npm run build | |
start: npm start |