Skip to content

main: Use latest Go 1.25 features if possible. #6485

main: Use latest Go 1.25 features if possible.

main: Use latest Go 1.25 features if possible. #6485

Workflow file for this run

name: Build and Test
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
name: Go CI
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.24", "1.25"]
steps:
- name: Check out source
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: ${{ matrix.go }}
- name: Use lint cache
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
with:
path: |
~/.cache/golangci-lint
key: go-lint-${{ matrix.go }}-${{ hashFiles('./go.sum') }}
restore-keys: go-lint-${{ matrix.go }}
- name: Stablilize testdata timestamps
run: |
bash ./.github/stablilize_testdata_timestamps.sh "${{ github.workspace }}"
- name: Install Linters
run: "go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.4.0"
- name: Build
run: go build ./...
- name: Test
run: |
sh ./run_tests.sh