Files
tsm/.github/workflows/ci.yaml
renovate[bot] bca3f97df7 chore(deps)!: update golangci/golangci-lint-action (v8 → v9)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-04 20:10:03 +00:00

42 lines
862 B
YAML

name: CI
on:
push:
branches: [ "**" ]
permissions: read-all
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Cache Go build
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: go-${{ runner.os }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
go-${{ runner.os }}-
- name: Install golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9
with:
version: latest
- name: Lint
run: golangci-lint run
- name: Test
run: go test ./... -race -coverprofile=coverage.out