name: Build and Test
on: [push, pull_request]
permissions:
  contents: read

jobs:
  build:
    name: Go CI
    runs-on: ubuntu-latest
    strategy:
      matrix:
        go: [1.17, 1.18]
    steps:
      - name: Set up Go
        uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab #v3.0.0
        with:
          go-version: ${{ matrix.go }}
      - name: Check out source
        uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 #v3.0.0
      - name: Install Linters
        run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.2"
      - name: Build
        run: go build ./...
      - name: Test
        run: |
          sh ./run_tests.sh

name: Build and Test
on: [push, pull_request]
permissions:
  contents: read

jobs:
  build:
    name: Go CI
    runs-on: ubuntu-latest
    strategy:
      matrix:
        go: [1.17, 1.18]
    steps:
      - name: Set up Go
        uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a #v3.2.1
        with:
          go-version: ${{ matrix.go }}
      - name: Check out source
        uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2
      - name: Install Linters
        run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.2"
      - name: Build
        run: go build ./...
      - name: Test
        run: |
          sh ./run_tests.sh

Update to latest action versions.
build: Update to latest action versions.

This updates to the following Github Actions:

- actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a #v3.2.1
- actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2
