Skip to content

Commit

Permalink
ci: setup static analysis + coverage w/ codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dabolus committed Aug 8, 2023
1 parent ab21e69 commit 5076322
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Run Static Code Analysis
uses: codacy/codacy-analysis-cli-action@master
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
Expand All @@ -17,7 +19,11 @@ jobs:
run: yarn install --immutable
- name: Lint
run: yarn lint
- name: Test
run: yarn test --coverage
- name: Build
run: yarn build
- name: Test
run: yarn test --coverage
- name: Upload coverage on Codacy
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage/lcov.info
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}

0 comments on commit 5076322

Please sign in to comment.