From 919346eba36796a3cc0902a72dce57cdc445f878 Mon Sep 17 00:00:00 2001 From: Chris Roche Date: Tue, 15 Sep 2020 09:29:11 -0700 Subject: [PATCH] Setup GitHub Actions (#2) * Setup GHA * Delete .travis.yml --- .github/workflows/go.yml | 33 +++++++++++++++++++++++++++++++++ .travis.yml | 10 ---------- 2 files changed, 33 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/go.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..43cbf2c --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,33 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.13 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Get dependencies + run: | + go get -v -t -d ./... + + - name: Build + run: go build -v . + + - name: Test + run: go test -v . diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0b98b60..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: go - -go: - - 1.2 - - 1.3 - - 1.4 - - tip - -script: - - go test -v -bench . -benchmem