fix api service behaviour] #2023
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: test | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 20.x | |
- name: Install dependencies | |
run: npm install -g typescript | |
- name: Build | |
run: ./scripts/build.sh | |
- name: Run dependencies | |
run: ./scripts/run-dependencies.sh | |
- name: Run server | |
run: npm run serve --prefix=app/server & | |
- name: Test back end | |
run: npm test --prefix=app/server | |
- name: Test back end integration | |
run: npm run integration-test --prefix=app/server | |
- name: Test front end | |
run: npm run coverage --prefix=app/static | |
- name: Lint back end | |
run: npm run lint --prefix=app/server | |
- name: Lint front end | |
run: npm run lint --prefix=app/static | |
- name: Check versions | |
run: npm run genversion --prefix=app/server -- --check-only | |
- uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true # optional (default = false) | |
files: ./app/server/coverage/coverage-final.json,./app/static/coverage/coverage-final.json | |
token: ${{ secrets.CODECOV_TOKEN }} # required |