github.com/agnivade/pgm@v0.0.0-20210528073050-e2df0d9cb72d/.github/workflows/ci.yml (about)

     1  on: [push, pull_request]
     2  name: CI
     3  jobs:
     4    test:
     5      strategy:
     6        matrix:
     7          go-version: [1.15.x, 1.16.x]
     8          os: [ubuntu-latest, macos-latest, windows-latest]
     9      runs-on: ${{ matrix.os }}
    10      steps:
    11      - name: Install Go
    12        uses: actions/setup-go@v2
    13        with:
    14          go-version: ${{ matrix.go-version }}
    15      - name: Checkout code
    16        uses: actions/checkout@v2
    17      - name: Lint
    18        run: gofmt -s -w . && go vet .
    19      - name: Test
    20        run: go test
    21      - name: Install
    22        run: go install