Skip to content

Upgrade the go version to 1.22.1 #13

Upgrade the go version to 1.22.1

Upgrade the go version to 1.22.1 #13

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [oldstable, stable]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Test
run: go test -v ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: oldstable
- uses: golangci/golangci-lint-action@v6
with:
version: latest