66 pull_request :
77 branches : [ "master" ]
88
9+ permissions : {}
10+
911jobs :
1012
13+ workflow-lint :
14+ if : github.event_name == 'pull_request'
15+ runs-on : ubuntu-latest
16+ timeout-minutes : 10
17+ permissions :
18+ contents : read
19+ steps :
20+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+ with :
22+ persist-credentials : false
23+
24+ - name : Lint workflows (actionlint)
25+ uses : devops-actions/actionlint@e7ee33fbf5aa8c9f9ee1145137f3e52e25d6a35b # v0.1.3
26+
27+ - name : Audit workflows (zizmor)
28+ uses : zizmorcore/zizmor-action@e639db99335bc9038abc0e066dfcd72e23d26fb4 # v0.3.0
29+ with :
30+ inputs : .github/workflows
31+ advanced-security : false
32+
33+ lint-and-types :
34+ if : github.event_name == 'pull_request'
35+ runs-on : ubuntu-latest
36+ timeout-minutes : 60
37+ permissions :
38+ contents : read
39+ steps :
40+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
41+ with :
42+ persist-credentials : false
43+
44+ - name : Set up Go (bootstrap)
45+ uses : actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
46+ with :
47+ go-version : ' 1.25.5'
48+ cache : true
49+ cache-dependency-path : tests/go.mod
50+
51+ - name : Export GOROOT_BOOTSTRAP
52+ run : echo "GOROOT_BOOTSTRAP=$(go env GOROOT)" >> $GITHUB_ENV
53+
54+ - name : Build Go-Panikint (truncation disabled)
55+ run : |
56+ cd src
57+ ./make.bash
58+
59+ - name : Lint (go vet)
60+ run : |
61+ cd tests
62+ GOROOT=${{ github.workspace }} ${{ github.workspace }}/bin/go vet ./...
63+
64+ - name : Type check (no tests)
65+ run : |
66+ cd tests
67+ GOROOT=${{ github.workspace }} ${{ github.workspace }}/bin/go test -run=^$ ./...
68+
1169 test-no-truncation :
1270 runs-on : ubuntu-latest
71+ timeout-minutes : 60
72+ permissions :
73+ contents : read
1374 steps :
14- - uses : actions/checkout@v4
75+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
76+ with :
77+ persist-credentials : false
1578
1679 - name : Set up Go (bootstrap)
17- uses : actions/setup-go@v5
80+ uses : actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
1881 with :
1982 go-version : ' 1.25.5'
83+ cache : true
84+ cache-dependency-path : tests/go.mod
2085
2186 - name : Export GOROOT_BOOTSTRAP
2287 run : echo "GOROOT_BOOTSTRAP=$(go env GOROOT)" >> $GITHUB_ENV
@@ -33,13 +98,20 @@ jobs:
3398
3499 test-with-truncation :
35100 runs-on : ubuntu-latest
101+ timeout-minutes : 60
102+ permissions :
103+ contents : read
36104 steps :
37- - uses : actions/checkout@v4
105+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
106+ with :
107+ persist-credentials : false
38108
39109 - name : Set up Go (bootstrap)
40- uses : actions/setup-go@v5
110+ uses : actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
41111 with :
42112 go-version : ' 1.25.5'
113+ cache : true
114+ cache-dependency-path : tests/go.mod
43115
44116 - name : Export GOROOT_BOOTSTRAP
45117 run : echo "GOROOT_BOOTSTRAP=$(go env GOROOT)" >> $GITHUB_ENV
0 commit comments