diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ad9dc63..3f0dcb1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,12 +7,12 @@ jobs: test: strategy: matrix: - go-version: [1.19.x] + go-version: [1.18.x, 1.19.x] platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 with: go-version: ${{ matrix.go-version }} - name: Install staticcheck @@ -25,7 +25,7 @@ jobs: run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH shell: bash - name: Checkout code - uses: actions/checkout@v1 + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - name: Fmt if: matrix.platform != 'windows-latest' # :( run: "diff <(gofmt -d .) <(printf '')"