28 lines
696 B
YAML
28 lines
696 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.26.6'
|
|
- name: Active task preflight
|
|
run: go run ./cmd/devctl preflight -active dev/ACTIVE_TASK.json
|
|
- name: Exact diff scope
|
|
run: go run ./cmd/devctl check-diff -active dev/ACTIVE_TASK.json
|
|
- name: Format check
|
|
run: test -z "$(gofmt -l .)"
|
|
- name: Architecture Sentinel
|
|
run: go run ./cmd/devctl check-architecture
|
|
- name: Test
|
|
run: go test ./...
|
|
- name: Vet
|
|
run: go vet ./...
|