forked from cosmos/ibc-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change test.yml and makefile (cosmos#968)
## Overview The Code Coverage action appears to be broken, this is an attempt to fix it. Fix inspired by https://github.com/celestiaorg/celestia-node/pull/2249/files ## Checklist - [ ] New and updated code has appropriate documentation - [ ] New and updated code has new and/or updated testing - [ ] Required CI checks are passing - [ ] Visual proof for any user facing features like CLI or documentation updates - [ ] Linked issues closed with keywords --------- Co-authored-by: Connor O'Hara <[email protected]>
- Loading branch information
Showing
2 changed files
with
6 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
# - name: check for diff | ||
# run: git diff --exit-code | ||
|
||
test_coverage: | ||
unit_test: | ||
name: Unit Tests Coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -32,23 +32,13 @@ jobs: | |
with: | ||
go-version: ${{ inputs.GO_VERSION }} | ||
- name: Test & Coverage | ||
run: make cover | ||
- uses: codecov/[email protected] | ||
run: make test-unit | ||
- name: upload coverage | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage.txt | ||
|
||
unit_test: | ||
name: Run Unit Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: set up go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ inputs.GO_VERSION }} | ||
- name: execute test run | ||
run: make test-unit | ||
|
||
unit_race_test: | ||
name: Run Unit Tests with Race Detector | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters