Skip to content

Commit

Permalink
Migrate CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrks committed Jan 2, 2021
1 parent a1611e5 commit 36d7fd0
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 17 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: ci

on:
push:
branches: [ master ]
tags: [ v* ]
pull_request:
branches: [ master ]

jobs:
matrix:
strategy:
matrix:
go-version: [1.15.x, 1.14.x, 1.13.x]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v2
- run: go get -v -t -d ./...
- run: go test -v ./...
coverage:
runs-on: ubuntu-latest
steps:
- name: Coverage on latest 1.x Go
uses: actions/setup-go@v2
with:
go-version: ^1.*
- uses: actions/checkout@v2
- run: go get -v -t -d ./...
- run: go test -v -coverprofile=coverage.out -covermode=count ./...
- uses: codecov/codecov-action@v1
with:
file: ./coverage.out
fail_ci_if_error: true
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.34
only-new-issues: true
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

0 comments on commit 36d7fd0

Please sign in to comment.