Skip to content

gha: update actions, and update to go1.21, go1.22 #43

gha: update actions, and update to go1.21, go1.22

gha: update actions, and update to go1.21, go1.22 #43

Workflow file for this run

name: test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
env:
TESTFLAGS: -v
BUILDFLAGS: -v
jobs:
build:
strategy:
matrix:
go-version: [1.21.x, 1.22.x]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: |
make build
- name: lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
args: --print-resources-usage --timeout=10m --verbose
- name: Test
run: |
make coverage
- name: Codecov
uses: codecov/codecov-action@v4
with:
directory: ./