-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathfq.yaml
51 lines (45 loc) · 1.22 KB
/
fq.yaml
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
package:
name: fq
version: "0.14.0"
epoch: 2
description: "jq for binary formats - tool, language and decoders for working with binary and text formats"
copyright:
- license: MIT
pipeline:
- uses: git-checkout
with:
repository: https://github.com/wader/fq
tag: v${{package.version}}
expected-commit: eed721829dcaf500a155dc1268c08c208ff97d35
- uses: go/bump
with:
deps: |-
golang.org/x/crypto@v0.35.0
golang.org/x/net@v0.36.0
modroot: .
- uses: go/build
with:
packages: ./
modroot: .
output: fq
ldflags: -X main.version=${{package.version}} -X main.commit=$(git rev-parse HEAD) -X main.date=$(date ${SOURCE_DATE_EPOCH:+ -d@${SOURCE_DATE_EPOCH}} "+%Y-%m-%dT%H:%M:%SZ")
- uses: strip
update:
enabled: true
github:
identifier: wader/fq
strip-prefix: v
test:
pipeline:
- name: "Verify installation and version"
runs: |
fq --version
- name: "Check help documentation"
runs: |
fq --help
- name: "Test basic JSON parsing"
runs: |
echo '{"key": "value"}' | fq .
- name: "Test basic query operations"
runs: |
echo '{"numbers": [1,2,3,4,5]}' | fq '.numbers[]'