Files
tsm/.github/workflows/ci.yaml
renovate[bot] cf01dcaf29 chore(deps)!: update actions/checkout (v4 → v5)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-19 19:50:09 +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@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- 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@v8
with:
version: latest
- name: Lint
run: golangci-lint run
- name: Test
run: go test ./... -race -coverprofile=coverage.out