Skip to content

Merge pull request #7 from taigrr/cd/tag-darwin-cli-mains #5

Merge pull request #7 from taigrr/cd/tag-darwin-cli-mains

Merge pull request #7 from taigrr/cd/tag-darwin-cli-mains #5

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
detector:
name: detector tests and lint (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26"
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run detector tests
run: go test ./detector/...
- name: Run detector lint
run: $(go env GOPATH)/bin/staticcheck ./detector/...
full-darwin-build:
name: full repo tests and lint (darwin)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26"
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run all tests
run: go test ./...
- name: Run full lint
run: $(go env GOPATH)/bin/staticcheck ./...