merge master #234
Workflow file for this run
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: Run Tests and Show Coverage Report | |
on: | |
push: | |
paths-ignore: | |
- '**/README.md' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: setup yarn | |
run: npm install -g yarn | |
- name: install deps | |
run: yarn install --immutable | |
- name: setup test env | |
run: cp .env.test .env | |
- name: check docker logs | |
run: docker compose logs | |
- name: setup test infra | |
run: yarn start:test-stack | |
- name: run tests with coverage | |
run: yarn test:coverage | |
- name: upload coverage reports | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
# files: ./coverage/lcov.info | |
fail_ci_if_error: true | |
- name: dump docker logs on failure | |
if: failure() | |
uses: jwalton/gh-docker-logs@v2 |