Skip to content

Bump actions/setup-go from 5 to 6 #2671

Bump actions/setup-go from 5 to 6

Bump actions/setup-go from 5 to 6 #2671

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch: {} # support manual runs
permissions:
contents: read
jobs:
ci:
name: ci (go:${{ matrix.go-version.name }})
# TODO(sayers) - Need to run on 22.04 for the time being until
# https://github.com/puppeteer/puppeteer/pull/13196 is released
# See https://github.com/connectrpc/conformance/pull/940 for context
runs-on: ubuntu-22.04
strategy:
matrix:
# When changing this, don't forget to also update
# the version of Go used in the release.yaml workflow.
go-version:
- name: latest
version: 1.25.x
- name: previous
version: 1.24.x
steps:
- name: Checkout Code
uses: actions/checkout@v5
with:
fetch-depth: 1
- name: Install Go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version.version }}
- name: Cache
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-conformance-ci-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-conformance-ci-
- name: Install npm dependencies
run: |
cd testing/grpcwebclient
npm ci
- name: Test
run: make test
- name: Run Conformance Tests
run: make runconformance
- name: Lint
# Often, lint & gofmt guidelines depend on the Go version. To prevent
# conflicting guidance, run only on the most recent supported version.
# For the same reason, only check generated code on the most recent
# supported version.
if: matrix.go-version.name == 'latest'
run: make checkgenerate && make lint
- name: Check Release
# We'll only be building releases w/ latest Go, so we only need to
# test that it can be built w/ latest.
if: matrix.go-version == '1.23.x'
run: make checkrelease