ci: use release please to manage the release process (#213) #33
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 Climate Test Reporter | |
on: | |
push: | |
branches: [main] | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
jobs: | |
code-climate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
api.codeclimate.com:443 | |
codeclimate.com:443 | |
d3iz1jjs17r6kg.cloudfront.net:443 | |
github.com:443 | |
registry.npmjs.org:443 | |
- name: ⚙️ Git Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: ⚙️ Install Node versions | |
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 | |
with: | |
node-version: '18.x' | |
- name: ⚙️ Install dependencies | |
run: npm ci | |
- run: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | |
- run: chmod +x ./cc-test-reporter | |
- run: ./cc-test-reporter before-build | |
- run: npm run coverage | |
- run: ./cc-test-reporter format-coverage -t lcov coverage/lcov.info | |
- run: ./cc-test-reporter upload-coverage | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} |