Skip to content

Fix Go version to 1.22 #6

Fix Go version to 1.22

Fix Go version to 1.22 #6

Workflow file for this run

on:
push:
pull_request:
name: Test
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
go-version:
- 1.22.x
- 1.23.x
- 1.24.x
- 1.x
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Test
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3