Skip to content

Commit

Permalink
Basic GH Action config
Browse files Browse the repository at this point in the history
  • Loading branch information
palango committed Oct 19, 2023
1 parent 0f60973 commit 9b04944
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yaml
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

5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand All @@ -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

Expand Down

0 comments on commit 9b04944

Please sign in to comment.