Skip to content

Bump golang up to 1.23 #59

Bump golang up to 1.23

Bump golang up to 1.23 #59

Workflow file for this run

name: Pull Request
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23'
cache: false
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: download modules
if: steps.cache.outputs.cache-hit != 'true'
run: go mod download
- name: build
run: go build .
- name: test
run: go test -json ./... > test.json
- name: annotate tests
if: always()
uses: guyarb/[email protected]
with:
test-results: test.json
lint:
name: Lint
strategy:
matrix:
go-version: [1.23]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23'
cache: false
- uses: golangci/golangci-lint-action@v6