-
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.
Upgrade dependencies. Move coverage generating to the CI
- Loading branch information
1 parent
2174a45
commit 7468fbf
Showing
18 changed files
with
255 additions
and
851 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test Integration | ||
name: Test (Integration) | ||
on: push | ||
|
||
jobs: | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test Unit | ||
name: Test (unit) | ||
on: push | ||
|
||
jobs: | ||
|
@@ -8,3 +8,10 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- name: Test Unit | ||
run: make test-unit | ||
- name: Coverage report | ||
uses: ncruces/[email protected] | ||
with: | ||
badge-title: Coverage (unit) | ||
coverage-file: assets/coverage/unit/coverage.out | ||
report: true | ||
output-dir: assets/coverage/unit |
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 |
---|---|---|
|
@@ -28,5 +28,7 @@ lint-golangci: vendor-install | |
lint-architecture: | ||
docker run --rm -v $(shell pwd):/app -w /app golang:1.20.0 /bin/bash \ | ||
-c "go install github.com/fdaines/[email protected] && arch-go -v" | ||
generate-go: | ||
docker run --rm -v $(shell pwd):/app -w /app golang:1.20.0 /bin/bash -c 'go install go.uber.org/mock/[email protected] && go generate ./...' | ||
vendor-install: | ||
@if [ -d "vendor" ]; then echo "Vendor folder already exists. Skip vendor installing."; else docker run --rm -v $(shell pwd):/app -w /app golang:1.20.0 /bin/bash -c "go mod tidy && go mod vendor"; fi |
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
Oops, something went wrong.