Skip to content

Commit

Permalink
Merge pull request #462 from pseudomuto/move_ci_to_github
Browse files Browse the repository at this point in the history
Switch from Travis to GitHub actions
  • Loading branch information
pseudomuto committed Oct 17, 2021
2 parents c1b5714 + 6178c66 commit 9d9cb9f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 44 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
create: ~

jobs:
test:
strategy:
matrix:
go: [ '1.17.2' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Dependencies
run: go get github.com/golang/protobuf/{proto,protoc-gen-go} github.com/haya14busa/goverage

- name: Tests
run: |
goverage -race -coverprofile=coverage.txt -covermode=atomic
make bench lint
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
44 changes: 0 additions & 44 deletions .travis.yml

This file was deleted.

3 changes: 3 additions & 0 deletions revive.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ severity = "warning"
confidence = 0.8
errorCode = 1
warningCode = 1
exclude = [
"./tmp/..."
]

[rule.blank-imports]
[rule.context-as-argument]
Expand Down

0 comments on commit 9d9cb9f

Please sign in to comment.