From 42c0635e2fac9bf2c9fc5208bda3367616a419ed Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Sat, 27 Mar 2021 10:05:01 -0700 Subject: [PATCH] .github: add github actions --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ .travis.yml | 20 -------------------- 2 files changed, 25 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0cec8ff --- /dev/null +++ b/.github/workflows/ci.yml @@ -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' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3475d14..0000000 --- a/.travis.yml +++ /dev/null @@ -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