Skip to content

go: update pipelines to 1.23 #265

go: update pipelines to 1.23

go: update pipelines to 1.23 #265

Workflow file for this run

name: Go
on:
push:
branches: [main]
pull_request:
branches:
- main
- "*-dev"
jobs:
lint:
strategy:
matrix:
go-version: [1.23.x]
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v4
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
args: --timeout 10m
test:
strategy:
matrix:
go-version: [1.23.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./
- name: Run unit tests
run: go test -v ./...
coverage:
strategy:
matrix:
go-version: [1.23.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Coverage
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload Coverage
run: bash <(curl -s https://codecov.io/bash)