ci: Update GitHub Actions and linter.

This commit is contained in:
jholdstock 2024-08-14 09:20:31 +01:00 committed by Jamie Holdstock
parent 85e992e520
commit caca0b45d0

View File

@ -9,14 +9,14 @@ jobs:
go: ["1.21", "1.22"] go: ["1.21", "1.22"]
steps: steps:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 #v5.0.1 uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 #v5.0.2
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}
- name: Check out source - name: Check out source
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b #v4.1.5 uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
- name: Build - name: Build
run: go build ./... run: go build ./...
- name: Install Linters - name: Install Linters
run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.1" run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.60.1"
- name: Test and Lint - name: Test and Lint
run: ./run_tests.sh run: ./run_tests.sh