Skip to content

Commit

Permalink
chore(ci): support codecov action
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Oct 2, 2024
1 parent f93d6d3 commit c3929bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Tests
on:
pull_request:
types: [opened, synchronize, reopened, labeled]
types: [opened, synchronize, reopened]
merge_group:
types: [checks_requested]

Expand Down Expand Up @@ -46,15 +46,14 @@ jobs:
- name: Test and Create Coverage Report
if: env.GIT_DIFF
run: |
EXPERIMENTAL=true make test-unit
# EXPERIMENTAL=true make test-unit-cover
# - uses: codecov/[email protected]
# if: env.GIT_DIFF
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# file: ./coverage.txt
# fail_ci_if_error: true
# verbose: true
EXPERIMENTAL=true make test-unit-cover
- uses: codecov/[email protected]
if: env.GIT_DIFF
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
fail_ci_if_error: true
# verbose: true

# test-e2e:
# # skip the e2e tests when `skip-e2e-test` label is present on pull request
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ go.work.sum

# binaries
out

# tests

coverage.txt

0 comments on commit c3929bd

Please sign in to comment.