Static analysis, test and build #68
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: Static analysis, test and build | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- '*.json' | |
- 'packages/app/**' | |
push: | |
paths: | |
- '*.json' | |
- 'packages/app/**' | |
jobs: | |
Validate: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.tool-versions' | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Static analysis (ESLint) | |
run: npm run lint -w=app | |
- name: Check types (tsc) | |
run: npm run check-types -w=app | |
- name: Unit tests | |
run: npm test -w=app | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: unittests | |
- name: Build | |
run: npm run build -w=app |