chore(docs): change link to api (#34) #27
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: Coverage | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 22.x | |
- name: Start Database(s) | |
run: | | |
docker compose \ | |
--file ".devcontainer/docker-compose.yml" \ | |
--file ".devcontainer/docker-compose-ci.yml" \ | |
up \ | |
--detach \ | |
--build \ | |
"mysql90" | |
- name: Run npm install | |
run: npm ci | |
- name: Initialize Database | |
run: | | |
docker compose \ | |
--file ".devcontainer/docker-compose.yml" \ | |
--file ".devcontainer/docker-compose-ci.yml" \ | |
up \ | |
"waitmysql90" | |
- name: Build | |
run: npm run build | |
env: | |
CI: true | |
- name: Coverage | |
run: npm run test:coverage | |
env: | |
CI: true | |
- name: Code Coverage Report | |
uses: irongut/[email protected] | |
with: | |
filename: coverage/cobertura-coverage.xml | |
badge: false | |
fail_below_min: true | |
format: markdown | |
hide_branch_rate: false | |
hide_complexity: true | |
indicators: true | |
output: console | |
thresholds: '75 90' | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
- name: Stop Database(s) | |
run: | | |
docker compose \ | |
--file ".devcontainer/docker-compose.yml" \ | |
--file ".devcontainer/docker-compose-ci.yml" \ | |
down |