Files
tsm/.github/workflows/ci.yaml
renovate[bot] 1b2d795281 chore(deps)!: update actions/setup-go (v5 → v6)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-01 20:11:35 +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@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
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@v8
with:
version: latest
- name: Lint
run: golangci-lint run
- name: Test
run: go test ./... -race -coverprofile=coverage.out