.github: add github actions

This commit is contained in:
Kevin Burke
2021-03-27 10:07:43 -07:00
parent 4977a11b43
commit 42c0635e2f
2 changed files with 25 additions and 20 deletions
+25
View File
@@ -0,0 +1,25 @@
on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.16.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: WillAbides/setup-go-faster@main
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v2
with:
path: './src/github.com/kevinburke/ssh_config'
# staticcheck needs this for GOPATH
- run: |
echo "GO111MODULE=off" >> $GITHUB_ENV
echo "GOPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
echo "PATH=$GITHUB_WORKSPACE/bin:$PATH" >> $GITHUB_ENV
- name: Run tests
run: make lint race-test
working-directory: './src/github.com/kevinburke/ssh_config'
-20
View File
@@ -1,20 +0,0 @@
arch:
- amd64
- ppc64le
go_import_path: github.com/kevinburke/ssh_config
language: go
dist: bionic
go:
- 1.13.x
- 1.14.x
- 1.15.x
- master
before_script:
- go get -u ./...
script:
- make race-test