Add GitHub Actions config

This commit is contained in:
Jonathan Rudenberg 2021-04-20 16:47:47 -04:00
parent 4bdb43be31
commit 59221ed642
2 changed files with 22 additions and 10 deletions

22
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,22 @@
on: [push, pull_request]
name: CI
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest

View File

@ -1,10 +0,0 @@
language: go
go:
- 1.6.2
- tip
sudo: false
matrix:
allow_failures:
- go: tip