-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.01 KB
/
Copy pathci.yaml
File metadata and controls
51 lines (41 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Ensure ripgrep
run: |
if ! command -v rg >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y ripgrep
fi
- name: Verify Dependencies
run: go mod verify
- name: AGENTS Contract Guard
run: ./scripts/ci/agents_guard.sh
- name: Build
run: go build -v ./...
- name: Run Tests
env:
HEIKE_RUN_E2E: "0"
run: go test -v ./...
- name: Vet
run: go vet ./...
- name: CLI Smoke Test
run: |
export HOME="$(mktemp -d)"
go build -o ./bin/heike ./cmd/heike
./bin/heike version
./bin/heike config init
./bin/heike config view > /tmp/heike-config.yaml
test -s /tmp/heike-config.yaml