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 18, 2023
1 parent 0f1f850 commit 348fa0c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 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

3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ all:
deps:
go get ./...
go install github.com/google/[email protected]
# used in CI
go install github.com/jstemmer/[email protected]

test:
go test ./...
Expand Down Expand Up @@ -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 348fa0c

Please sign in to comment.