All checks were successful
check / check (pull_request) Successful in 11m57s
Two issues caused CI failures: 1. golangci-lint v2.10.1 requires Go >= 1.25.0, but the project uses Go 1.24.4 (from go.mod). The previous `go install` approach tried to compile golangci-lint from source, which fails due to the Go version mismatch. Fix: download the pre-built binary via the official install script, pinned to the same commit SHA (5d1e709) for security. 2. TestBackupAndRestore fails because vacuumDatabase() shells out to the `sqlite3` CLI binary, which is not installed in the CI runner image. Fix: install sqlite3 via apt-get in CI.
23 lines
737 B
YAML
23 lines
737 B
YAML
name: check
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
|
|
with:
|
|
go-version-file: go.mod
|
|
- name: Install system dependencies
|
|
run: |
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -y -qq sqlite3
|
|
- name: Install golangci-lint
|
|
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/5d1e709b7be35cb2025444e19de266b056b7b7ee/install.sh | sh -s -- -b "$(go env GOPATH)/bin" v2.10.1
|
|
- name: Run checks
|
|
run: make check
|