GitHub Actions: update to latest versions of actions

This commit is contained in:
Michael Stapelberg 2025-02-22 07:22:45 +01:00
parent 8965ef43ba
commit 62e5a663a8

View File

@ -9,21 +9,18 @@ jobs:
name: CI name: CI
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4
- name: Set up Go 1.x - name: Set up latest stable Go
uses: actions/setup-go@v2 uses: actions/setup-go@v5
with: with:
# Run on the latest minor release of Go 1.19: go-version: 'stable'
go-version: ^1.19
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Ensure all files were formatted as per gofmt - name: Ensure all files were formatted as per gofmt
run: | run: |
[ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ] [ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ]
- name: Build packages - name: Build and test
run: | run: |
go install -v ./... go install ./...
go test -v ./...