mirror of
https://github.com/lunchcat/sif.git
synced 2026-04-28 11:33:06 -07:00
nuclei/v3 v3.8.0 (PR #97) requires go >= 1.25.7 in go.mod. this breaks the existing CI pinned to go 1.24: - build: "go.mod requires go >= 1.25.7 (running go 1.24.13; GOTOOLCHAIN=local)" - lint: "the Go language version (go1.24) used to build golangci-lint is lower than the targeted Go version (1.25.7)" bumps setup-go to 1.25 across all workflows and moves the lint job to golangci-lint-action v8 with golangci-lint v2.11.4 (built with go 1.25). migrates .golangci.yml to the v2 schema: - version: "2" - linters-settings -> linters.settings - issues.exclude-rules -> linters.exclusions.rules - drop gosimple (merged into staticcheck in v2) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: go
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: set up go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: "1.25"
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v8
|
|
with:
|
|
version: v2.11.4
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go-version: ["1.25"]
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: set up go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: build
|
|
run: make
|
|
- name: run tests with coverage
|
|
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
|
|
- name: upload coverage to codecov
|
|
uses: codecov/codecov-action@v6
|
|
with:
|
|
files: ./coverage.out
|
|
fail_ci_if_error: false
|