Skip to content

tweaking workflow

tweaking workflow #12

name: Commit Workflow
on:
push
jobs:
audit-deps:
runs-on: ubuntu-latest
name: Check Node Dependencies for Known Security Vulnerabilities
steps:
- uses: actions/checkout@v4
with:
working-directory: ./react-frontend
audit: npm audit --omit dev
check-unused-deps:
runs-on: ubuntu-latest
name: Check for Unused Node Dependencies
steps:
- uses: actions/checkout@v4
with:
working-directory: ./react-frontend
ignores: 'jest'
execute: npm install depcheck -g && depcheck
run-cypress-tests:
runs-on: ubuntu-latest
name: Run Cypress Tests
container:
image: cypress/browsers:node18.12.0-chrome107
steps:
- uses: actions/checkout@v4
- uses: cypress-io/github-action@v6
with:
working-directory: ./react-frontend
build: npm run build
start: npm start