-
Notifications
You must be signed in to change notification settings - Fork 15
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
2 changed files
with
41 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Celo Rosetta CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
CI: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.17' | ||
|
||
- name: Install dependencies | ||
run: make deps | ||
|
||
- name: Check licenses | ||
run: make check-license | ||
|
||
- name: Linting | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.50 | ||
|
||
- name: Build | ||
run: make all | ||
|
||
- name: Test | ||
run: make test-cover | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
|
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 |
---|---|---|
|
@@ -24,14 +24,12 @@ all: | |
deps: | ||
go get ./... | ||
go install github.com/google/[email protected] | ||
# used in CI | ||
go install github.com/jstemmer/[email protected] | ||
|
||
test: | ||
go test ./... | ||
|
||
test-cover: | ||
go test ./... -covermode=count | ||
go test ./... -covermode=count -coverprofile=coverage.out | ||
|
||
fmt: | ||
go fmt ./... | ||
|
@@ -55,7 +53,6 @@ clean: | |
add-license: | ||
${LICENCE_SCRIPT} analyzer airgap cmd db examples internal service main.go | ||
|
||
|
||
check-license: | ||
${LICENCE_SCRIPT} -check analyzer airgap cmd db examples internal service main.go | ||
|
||
|