Gsa/add touchpoint (#387) #327
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 and code coverage | |
on: | |
push: | |
paths: | |
- front-end/** | |
- .github/** | |
jobs: | |
unit-tests-and-lint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: '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: 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 |