chore(deps): update paambaati/codeclimate-action action to v9 #686
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
# This is a Github Workflow that runs tests on any push or pull request. | |
name: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- name: Install deps | |
run: yarn | |
- name: Test | |
run: yarn test | |
release_radar: | |
name: Publish radar to gh-pages | |
# https://github.community/t/trigger-job-on-tag-push-only/18076 | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: Checkuout | |
uses: actions/checkout@v4 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- name: Install deps | |
run: yarn | |
- name: Generate | |
run: | | |
yarn generate | |
yarn docs | |
- name: Publish gh-pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist | |
commit_message: "docs: update tech-radar static" | |
allow_empty_commit: true | |
enable_jekyll: false | |
release_lib: | |
name: Release lib | |
# https://github.community/t/trigger-job-on-tag-push-only/18076 | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
- name: Install deps | |
run: yarn | |
- name: Test | |
run: yarn test:unit | |
- name: Codeclimate | |
uses: paambaati/codeclimate-action@v9.0.0 | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageLocations: | | |
${{ github.workspace }}/coverage/lcov.info:lcov | |
- name: Release | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} | |
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }} | |
run: npm_config_yes=true npx zx-semrel |