Skip to content

adding docker install/start #259

adding docker install/start

adding docker install/start #259

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