Skip to content

Commit

Permalink
Refactor CI for fork PR (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoanm authored Mar 27, 2024
1 parent 814926b commit 7494fa9
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,20 @@ jobs:
- name: Run tests
run: make test-go gotest_o="-race -covermode=atomic -coverprofile=coverage.out"

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Create coverage group
id: tests-coverage-group
uses: yoanm/temp-reports-group-workspace/.github/actions/create-action@develop
with:
format: clover
files: coverage.out
path: build/coverage-groups

- name: Upload coverage to Codacy
uses: codacy/codacy-coverage-reporter-action@v1
- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.out
force-coverage-parser: go
name: coverage-group
path: build/coverage-groups
if-no-files-found: error

static:
name: Static checks
Expand All @@ -60,6 +65,8 @@ jobs:

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.57

- name: Documentation
env:
Expand Down

0 comments on commit 7494fa9

Please sign in to comment.