From a55c99b4334a0f1934eac2d292b41c1b3ba6e8e1 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Wed, 28 Jul 2021 13:28:48 +0000 Subject: [PATCH] Add GitHub actions That extra green checkmark does wonders for peace of mind. --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..32d86a7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI +on: + pull_request: {} + push: + branches: + - master +jobs: + test: + strategy: + fail-fast: false + matrix: + go: + - 1.16 + name: Go ${{ matrix.go }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + id: go + - name: Get dependencies + run: go get -t -v ./... + - name: Install staticcheck + run: go install honnef.co/go/tools/cmd/staticcheck@latest + - name: Lint + run: staticcheck -checks=all ./... + - name: Test + run: go test -v -race ./...