Skip to content

Commit

Permalink
Merge pull request #1 from 2amigos/development
Browse files Browse the repository at this point in the history
Push code analysis to codacy
  • Loading branch information
2amjsouza authored Oct 25, 2024
2 parents 339c05d + a35fcf8 commit fc216d6
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 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
- name: Upload coverage reports to Codacy
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./coverage/packages/${{ matrix.PROJECT_NAME }}/clover.xml

0 comments on commit fc216d6

Please sign in to comment.