-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 833 Bytes
/
Copy pathci.yml
File metadata and controls
38 lines (32 loc) · 833 Bytes
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
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25'
- run: go fmt ./...
- name: check no formatting changes
run: git diff --exit-code
- run: go vet ./...
- run: go build -o wtkill .
- name: smoke test — list JSON
run: |
mkdir -p /tmp/wtkill-smoke
./wtkill list --json --path /tmp/wtkill-smoke --depth 1
- name: smoke test — clean without filters must refuse
run: |
set +e
./wtkill clean --path /tmp 2>&1
code=$?
set -e
if [ "$code" != "2" ]; then
echo "expected exit 2, got $code"
exit 1
fi