chore: change type
to module
#311
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: 'Code coverage' | |
on: [push] | |
jobs: | |
release: | |
name: Test coverage | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./votes | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'yarn' | |
- name: Install project dependencies | |
run: yarn --prefer-offline | |
- run: yarn test | |
- 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 -o coverage/codeclimate.json coverage/lcov.info | |
./cc-test-reporter upload-coverage | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
- run: ./tools/codacy-cov.sh | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
- run: ./tools/codecov.sh | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |