Skip to content

Commit

Permalink
pushing code analysis to codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
2amjsouza committed Oct 25, 2024
1 parent 2836d4a commit a35fcf8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on: [push]

jobs:
test:

strategy:
matrix:
PROJECT_NAME: [crudx]

name: Crudx Jest Tests
runs-on: ubuntu-latest

Expand All @@ -22,13 +27,13 @@ jobs:
run: docker ps

- name: Run unit tests
run: ./test.sh crudx
run: ./test.sh ${{ matrix.PROJECT_NAME }}

- name: Check coverage if files exists
run: (ls ./coverage/packages/crudx/clover.xml && echo yes) || echo no
run: (ls ./coverage/packages/${{ matrix.PROJECT_NAME }}/clover.xml && echo yes) || echo no

- name: Upload coverage reports to Codacy
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: /coverage/packages/crudx/coverage.xml
coverage-reports: ./coverage/packages/${{ matrix.PROJECT_NAME }}/clover.xml

0 comments on commit a35fcf8

Please sign in to comment.