Skip to content

Merge pull request #287 from GSA/mmeyer/add-link-to-test-backend #284

Merge pull request #287 from GSA/mmeyer/add-link-to-test-backend

Merge pull request #287 from GSA/mmeyer/add-link-to-test-backend #284

name: Frontend tests and code coverage
on:
push:
paths:
- training-front-end/**
- .github/**
jobs:
unit-tests-and-lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'training-front-end'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: training-front-end/package-lock.json
- name: install dependencies
run: npm ci
- name: run linter
run: npm run lint
- name: code run coverage > 90 %
run: npm run test:coverage -- --watch=false
- name: Run pa11y
run: npm run pa11y-ci:gh