-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
58 lines (49 loc) · 1.61 KB
/
Copy pathv2-checks.yml
File metadata and controls
58 lines (49 loc) · 1.61 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
name: v2 Modularization Checks
on:
push:
branches: [main]
pull_request:
# Cancel superseded runs on the same ref; these gates are cheap and idempotent.
concurrency:
group: v2-checks-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
acyclic-deps:
name: Acyclic dependency graph
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- run: bash scripts/check-acyclic-deps.sh
single-source:
name: Single source of truth per package path
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- run: bash scripts/check-single-source.sh
siv-placement:
name: /v2 SIV placement
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- run: bash scripts/check-siv-placement.sh
consumer-simulation:
name: External consumer simulation (GOWORK=off)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Set up mise
uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release-mode build (each module pins at root versions + external consumer, GOWORK=off)
run: bash scripts/check-release-mode.sh