Factor helpers out of dashboard pipeline #405
Workflow file for this run
This file contains hidden or 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 CI | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "frontend/**" | |
| - "data-pipelines/tests/calculationsData.json" | |
| pull_request: | |
| paths: | |
| - "frontend/**" | |
| - "data-pipelines/tests/calculationsData.json" | |
| jobs: | |
| checks: | |
| name: Checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup Node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: "14.16.1" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Verify clean build | |
| run: npm run build | |
| - name: Run Jest tests | |
| run: npm test |