name: CI on: pull_request: {} push: branches: - master permissions: contents: read jobs: test: strategy: fail-fast: false matrix: go: - 1.16 name: Go ${{ matrix.go }} runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 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@v0.2.2 - name: Lint run: staticcheck -checks=all ./... - name: Test run: go test -v -race ./...