github.com/decred/politeia@v1.4.0/.github/workflows/go.yml (about)

     1  name: Build and Test
     2  on: [push, pull_request]
     3  jobs:
     4    build:
     5      name: Go CI
     6      runs-on: ubuntu-latest
     7      strategy:
     8        matrix:
     9          go: [1.18, 1.19]
    10      steps:
    11        - name: Set up Go
    12          uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a #v3.2.1
    13          with:
    14            go-version: ${{ matrix.go }}
    15        - name: Check out source
    16          uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2
    17        - name: Install Linters
    18          run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.48.0"
    19        - name: Build
    20          run: go build ./...
    21        - name: Test
    22          run: |
    23            sh ./goclean.sh