chore(deps-dev): bump @vitest/coverage-istanbul from 1.1.1 to 1.2.1 #390
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: build and test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
PNPM_VERSION: 8.4.x | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 16.x, 18.x ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
cache-dependency-path: pnpm-lock.yaml | |
- run: pnpm install --frozen-lockfile --production false | |
- run: pnpm test:cov | |
env: | |
CI: true | |
DOMAIN: localhost | |
JWT_SECRET: testing-access-token-secret | |
- name: report coverage to code climate | |
# code coverage report will only run on the main branch and not on pull request | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
run: | | |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | |
chmod +x ./cc-test-reporter | |
./cc-test-reporter format-coverage -t lcov coverage/lcov.info | |
./cc-test-reporter upload-coverage | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} |