From 8e211fc2dddbeec5c2ecc284b38f9e577b6341c4 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Mon, 26 Oct 2020 16:26:47 -0700 Subject: [PATCH] Convert CI from Travis to GitHub Actions. The performance of GitHub Actions is faster and more consistent than the free tier of Travis CI. Build, lint, tests, and staticcheck for the same versions of Go using Actions instead. --- .github/workflows/go-presubmit.yml | 23 +++++++++++++++++++++++ .travis.yml | 7 ------- 2 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/go-presubmit.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/go-presubmit.yml b/.github/workflows/go-presubmit.yml new file mode 100644 index 0000000..2504271 --- /dev/null +++ b/.github/workflows/go-presubmit.yml @@ -0,0 +1,23 @@ +name: Go presubmit + +on: + push: + branches: + - master + pull_request: + types: [opened, reopened, synchronize] + +jobs: + build: + name: Go presubmit + runs-on: ubuntu-latest + strategy: + matrix: + go-version: ['1.11', '1.12', '1.13', '1.14', '1.15'] + steps: + - name: Install Go ${{ matrix.go-version }} + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + - uses: actions/checkout@v2 + - uses: creachadair/go-presubmit-action@default diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 09d5ef3..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: go -go: - - 1.11 - - 1.12 - - 1.13 - - 1.14 - - 1.15