Skip to content

ci: bump actions/setup-go from 5 to 6 #131

ci: bump actions/setup-go from 5 to 6

ci: bump actions/setup-go from 5 to 6 #131

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.23, 1.24]
steps:
- uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
- name: Cache Go modules
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download dependencies
run: go mod download
- name: Run tests
run: make test
- name: Run tests with race detector
run: make test-race
- name: Generate coverage report
run: make test-coverage-report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
file: ./coverage.out
flags: unittests
name: codecov-umbrella
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.24'
- name: Download dependencies
run: go mod download
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: latest
skip-cache: true
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.24'
- name: Build
run: make build
- name: Build Docker image
run: make docker