Files
tsm/.github/workflows/ci.yaml
renovate[bot] 68a7076812 chore(deps)!: update actions/cache (v4 → v5)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-17 02:53:24 +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@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5
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