name: Lint and Test

on:
  pull_request:
  push:
    branches: [master]

jobs:
  lint_and_test:
    name: Lint and Test - ${{ matrix.go-version }}
    strategy:
      matrix:
        go-version: [1.15.x, 1.16.x, 1.x]
        platform: [ubuntu-latest]
    runs-on: ${{ matrix.platform }}
    steps:
      - name: Install Go
        uses: actions/setup-go@v2
        with:
          go-version: ${{ matrix.go-version }}

      - name: Checkout code
        uses: actions/checkout@v2

      - name: Lint package
        uses: golangci/golangci-lint-action@v2
        with:
          version: latest

      - name: Test package
        run: go test -v ./...

name: Lint and Test

on:
  pull_request:
  push:
    branches: [master]

jobs:
  lint_and_test:
    name: Lint and Test - ${{ matrix.go-version }}
    strategy:
      matrix:
        go-version: [1.16.x, 1.17.x, 1.x]
        platform: [ubuntu-latest]
    runs-on: ${{ matrix.platform }}
    steps:
      - name: Install Go
        uses: actions/setup-go@v2
        with:
          go-version: ${{ matrix.go-version }}

      - name: Checkout code
        uses: actions/checkout@v2

      - name: Lint package
        uses: golangci/golangci-lint-action@v2
        with:
          version: latest

      - name: Test package
        run: go test -v ./...

Update the Go versions used by the GitHub actions
Update the Go versions used by the GitHub actions
