mirror of
https://github.com/wavetermdev/ssh_config.git
synced 2026-08-05 13:43:40 -07:00
.github: add github actions
This commit is contained in:
@@ -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
@@ -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
|
||||
Reference in New Issue
Block a user