Skip to content

Commit

Permalink
moved to github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh committed Apr 3, 2021
1 parent 1b4c984 commit 4e32a26
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 105 deletions.
103 changes: 0 additions & 103 deletions .circleci/config.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.15
- run: make build

- run: make coverage
- uses: codecov/codecov-action@v1

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.15

- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.32.2
- run: make lint

format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.15

- run: make check-format

salus:
name: Salus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make salus
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ check-format:
test:
${TEST_SCRIPT}

coverage:
if [ "${COVERALLS_TOKEN}" ]; then ${TEST_SCRIPT} -coverprofile=c.out -covermode=count; ${GOVERALLS_CMD} -coverprofile=c.out -repotoken ${COVERALLS_TOKEN}; fi
coverage:
${TEST_SCRIPT} -coverprofile=c.out -covermode=count

coverage-local:
${TEST_SCRIPT} -cover
Expand Down

0 comments on commit 4e32a26

Please sign in to comment.