-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
7 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 |
---|---|---|
|
@@ -14,21 +14,39 @@ jobs: | |
- uses: rokroskar/workflow-run-cleanup-action@master | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
if: "!startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/cosmos')" | ||
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'" | ||
|
||
Unit-tests: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
- name: Setup Go | ||
|
||
- name: Setup Go 🧰 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
- name: Test & Create coverage report | ||
run: make install test-unit | ||
- name: Upload cove coverage | ||
uses: codecov/[email protected] | ||
|
||
- name: Compute diff 📜 | ||
uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
**/**.go | ||
go.mod | ||
go.sum | ||
- name: Build 🔨 | ||
if: "env.GIT_DIFF != ''" | ||
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make build | ||
|
||
- name: Test & Coverage report creation 🧪 | ||
run: | | ||
make install test-unit stop-docker-test | ||
- name: Upload coverage 📤 | ||
if: "env.GIT_DIFF != ''" | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
file: ./coverage.txt |