-
-
Notifications
You must be signed in to change notification settings - Fork 0
117 lines (111 loc) · 4.56 KB
/
Copy pathci.yml
File metadata and controls
117 lines (111 loc) · 4.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: CI
on:
push:
branches: [main]
pull_request:
merge_group:
workflow_dispatch:
permissions: {}
concurrency:
group: ci-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Verify
permissions: {contents: read}
uses: secengcommons/ci/.github/workflows/verify.yml@76c18728aad5ae2ba70cc3776bb328bd78f24bef # v1.0.6; exclude v1.0.7: reusable workflow files unchanged
linux:
name: Linux
permissions: {contents: read}
uses: secengcommons/ci/.github/workflows/linux.yml@76c18728aad5ae2ba70cc3776bb328bd78f24bef # v1.0.6; exclude v1.0.7: reusable workflow files unchanged
windows:
name: Windows
permissions: {contents: read}
uses: secengcommons/ci/.github/workflows/windows.yml@76c18728aad5ae2ba70cc3776bb328bd78f24bef # v1.0.6; exclude v1.0.7: reusable workflow files unchanged
macos:
name: macOS
permissions: {contents: read}
uses: secengcommons/ci/.github/workflows/macos.yml@76c18728aad5ae2ba70cc3776bb328bd78f24bef # v1.0.6; exclude v1.0.7: reusable workflow files unchanged
fuzz:
name: Fuzz
permissions: {contents: read}
uses: secengcommons/ci/.github/workflows/fuzz.yml@76c18728aad5ae2ba70cc3776bb328bd78f24bef # v1.0.6; exclude v1.0.7: reusable workflow files unchanged
ports:
name: Go ports
permissions: {contents: read}
uses: secengcommons/ci/.github/workflows/ports.yml@76c18728aad5ae2ba70cc3776bb328bd78f24bef # v1.0.6; exclude v1.0.7: reusable workflow files unchanged
containers:
name: Containers
permissions: {contents: read}
uses: secengcommons/ci/.github/workflows/containers.yml@76c18728aad5ae2ba70cc3776bb328bd78f24bef # v1.0.6; exclude v1.0.7: reusable workflow files unchanged
alpine:
name: Alpine Linux
permissions: {contents: read}
uses: secengcommons/ci/.github/workflows/alpine.yml@76c18728aad5ae2ba70cc3776bb328bd78f24bef # v1.0.6; exclude v1.0.7: reusable workflow files unchanged
bsd:
name: BSD
permissions: {contents: read}
uses: secengcommons/ci/.github/workflows/bsd.yml@76c18728aad5ae2ba70cc3776bb328bd78f24bef # v1.0.6; exclude v1.0.7: reusable workflow files unchanged
illumos:
name: illumos
permissions: {contents: read}
uses: secengcommons/ci/.github/workflows/illumos.yml@76c18728aad5ae2ba70cc3776bb328bd78f24bef # v1.0.6; exclude v1.0.7: reusable workflow files unchanged
solaris:
name: Solaris
permissions: {contents: read}
uses: secengcommons/ci/.github/workflows/solaris.yml@76c18728aad5ae2ba70cc3776bb328bd78f24bef # v1.0.6; exclude v1.0.7: reusable workflow files unchanged
dependencies:
name: Dependencies
if: github.event_name == 'pull_request'
permissions: {contents: read}
uses: secengcommons/ci/.github/workflows/dependencies.yml@76c18728aad5ae2ba70cc3776bb328bd78f24bef # v1.0.6; exclude v1.0.7: reusable workflow files unchanged
codeql:
name: CodeQL
permissions:
contents: read
security-events: write
uses: secengcommons/ci/.github/workflows/codeql.yml@76c18728aad5ae2ba70cc3776bb328bd78f24bef # v1.0.6; exclude v1.0.7: reusable workflow files unchanged
benchmark:
name: Benchmark
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
cache: false
- name: Run benchmarks
run: go test -run=^$ -bench=. -benchmem ./...
required:
name: Required
if: ${{ always() }}
needs: [verify, linux, windows, macos, fuzz, ports, containers, alpine, bsd, illumos, solaris, dependencies, codeql, benchmark]
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions: {}
steps:
- name: Check jobs
env:
EVENT: ${{ github.event_name }}
RESULTS: ${{ toJSON(needs) }}
shell: bash
run: |
python3 - <<'PY'
import json, os
results = json.loads(os.environ["RESULTS"])
expected = {name: "success" for name in results}
if os.environ["EVENT"] != "pull_request":
expected["dependencies"] = "skipped"
failed = {name: result["result"] for name, result in results.items() if result["result"] != expected[name]}
if failed:
for name in sorted(failed):
print(f"{name}: {failed[name]}")
raise SystemExit(1)
PY