Replace Travis with GitHub Actions

This commit is contained in:
Alexander Neumann
2020-09-13 11:13:06 +02:00
parent 06f8484400
commit 6e44ec0763
4 changed files with 64 additions and 40 deletions

25
.github/workflows/linters.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Style Checkers
on: [push]
jobs:
build:
name: Check
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.15.x
id: go
- name: Install golang-ci
run: |
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $HOME/bin latest
- name: Check out code
uses: actions/checkout@v1
- name: Run golang-ci
run: |
export PATH=$HOME/bin:$PATH
golangci-lint run --enable goimports,govet,misspell,stylecheck