-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
55 lines (46 loc) · 1.56 KB
/
Taskfile.yml
File metadata and controls
55 lines (46 loc) · 1.56 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
52
53
54
55
version: '3'
dotenv: ['.env']
tasks:
default:
desc: Run vet, build, and test — the CI-equivalent local smoke check
deps: [vet, build, test]
vet:
desc: Run go vet over the whole module
cmds:
- go vet ./...
build:
desc: Compile the whole module and build the daemon binary
cmds:
- go build ./...
- go build -o build/bin/smd ./cmd/smd
test:
desc: Run tests with race detector and -short
cmds:
- go test -race -short ./...
test:qrz-live:
desc: |
Run the manual QRZ.com live-integration test (quick round-trip,
no pauses). Requires QRZ_TEST_API_KEY and QRZ_TEST_CALLSIGN in
.env (for the operator's test logbook). Makes real HTTP calls
to QRZ and cleans up the test record via an in-test DELETE.
cmds:
- go test -v -count=1 -tags manual -run TestLive_InsertThenUpdate ./internal/forwarding/qrz/...
test:qrz-live-interactive:
desc: |
Interactive QRZ.com live flow: INSERT → pause → UPDATE → pause →
DELETE, pausing after each operation so you can verify the
record on QRZ.com's website between steps. Requires
QRZ_TEST_API_KEY and QRZ_TEST_CALLSIGN in .env. Ctrl+C between
steps leaves the record in the logbook.
interactive: true
cmds:
- go test -v -count=1 -tags manual -run TestLive_InteractiveFlow ./internal/forwarding/qrz/...
run:
desc: Build and run the daemon using SM_WORKING_DIR from .env
deps: [build]
cmds:
- ./build/bin/smd
tidy:
desc: Tidy go.mod and go.sum
cmds:
- go mod tidy