Skip to content

Commit

Permalink
Use github actions instead of travis (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnweldon authored Apr 6, 2022
1 parent 764995b commit 71130c8
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 43 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: PR

on:
pull_request:
branches: [ master ]


jobs:
gomod:
runs-on: ubuntu-latest
strategy:
matrix:
go: [
'1.18',
'1.17',
'1.16',
'1.15',
'1.14',
'1.13',
]
name: Go ${{ matrix.go }}.x PR Validate
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Version
run: go version
- name: Build and Validate
run: |
go vet .
go test .
go test -cover -race -cpu 1,2,4 .
go build .
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.45
only-new-issues: true

43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

0 comments on commit 71130c8

Please sign in to comment.