Skip to content
This repository was archived by the owner on Apr 3, 2026. It is now read-only.

Commit 904c0cd

Browse files
committed
ci: add workflows for all workspaces
1 parent 5a210bd commit 904c0cd

4 files changed

Lines changed: 191 additions & 0 deletions

File tree

.github/workflows/ci-airdrops.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: "CI Flow"
2+
3+
concurrency:
4+
cancel-in-progress: true
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
7+
on:
8+
push:
9+
branches:
10+
- "main"
11+
- "staging"
12+
paths: &on_paths
13+
- ".github/workflows/ci-airdrops.yml"
14+
- ".github/workflows/shared-*.yml"
15+
- "airdrops/**"
16+
- "foundry.toml"
17+
- "justfile"
18+
- "package.json"
19+
# pull_request:
20+
# paths: *on_paths
21+
workflow_dispatch:
22+
jobs:
23+
build:
24+
secrets: inherit
25+
uses: ./.github/workflows/shared-build.yml
26+
with:
27+
workspace: airdrops
28+
29+
test-unit:
30+
needs: build
31+
if: needs.build.outputs.cache-status != 'primary'
32+
secrets: inherit
33+
uses: ./.github/workflows/shared-test.yml
34+
with:
35+
workspace: airdrops
36+
test-type: unit
37+
38+
test-integration:
39+
needs: build
40+
if: needs.build.outputs.cache-status != 'primary'
41+
secrets: inherit
42+
uses: ./.github/workflows/shared-test.yml
43+
with:
44+
workspace: airdrops
45+
test-type: integration
46+
47+
test-fork:
48+
needs: build
49+
if: needs.build.outputs.cache-status != 'primary'
50+
secrets: inherit
51+
uses: ./.github/workflows/shared-test.yml
52+
with:
53+
workspace: airdrops
54+
test-type: fork
55+
56+
test-coverage:
57+
needs: build
58+
if: needs.build.outputs.cache-status != 'primary'
59+
secrets: inherit
60+
uses: ./.github/workflows/shared-test.yml
61+
with:
62+
workspace: airdrops
63+
test-type: coverage

.github/workflows/ci-lockup.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: "CI Flow"
2+
3+
concurrency:
4+
cancel-in-progress: true
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
7+
on:
8+
push:
9+
branches:
10+
- "main"
11+
- "staging"
12+
paths: &on_paths
13+
- ".github/workflows/ci-lockup.yml"
14+
- ".github/workflows/shared-*.yml"
15+
- "lockup/**"
16+
- "foundry.toml"
17+
- "justfile"
18+
- "package.json"
19+
# pull_request:
20+
# paths: *on_paths
21+
workflow_dispatch:
22+
jobs:
23+
build:
24+
secrets: inherit
25+
uses: ./.github/workflows/shared-build.yml
26+
with:
27+
workspace: lockup
28+
29+
test-unit:
30+
needs: build
31+
if: needs.build.outputs.cache-status != 'primary'
32+
secrets: inherit
33+
uses: ./.github/workflows/shared-test.yml
34+
with:
35+
workspace: lockup
36+
test-type: unit
37+
38+
test-integration:
39+
needs: build
40+
if: needs.build.outputs.cache-status != 'primary'
41+
secrets: inherit
42+
uses: ./.github/workflows/shared-test.yml
43+
with:
44+
workspace: lockup
45+
test-type: integration
46+
47+
test-invariant:
48+
needs: build
49+
if: needs.build.outputs.cache-status != 'primary'
50+
secrets: inherit
51+
uses: ./.github/workflows/shared-test.yml
52+
with:
53+
workspace: lockup
54+
test-type: invariant
55+
56+
test-fork:
57+
needs: build
58+
if: needs.build.outputs.cache-status != 'primary'
59+
secrets: inherit
60+
uses: ./.github/workflows/shared-test.yml
61+
with:
62+
workspace: lockup
63+
test-type: fork
64+
65+
test-coverage:
66+
needs: build
67+
if: needs.build.outputs.cache-status != 'primary'
68+
secrets: inherit
69+
uses: ./.github/workflows/shared-test.yml
70+
with:
71+
workspace: flow
72+
test-type: coverage

.github/workflows/ci-utils.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: "CI Flow"
2+
3+
concurrency:
4+
cancel-in-progress: true
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
7+
on:
8+
push:
9+
branches:
10+
- "main"
11+
- "staging"
12+
paths: &on_paths
13+
- ".github/workflows/ci-utils.yml"
14+
- ".github/workflows/shared-*.yml"
15+
- "utils/**"
16+
- "foundry.toml"
17+
- "justfile"
18+
- "package.json"
19+
# pull_request:
20+
# paths: *on_paths
21+
workflow_dispatch:
22+
jobs:
23+
build:
24+
secrets: inherit
25+
uses: ./.github/workflows/shared-build.yml
26+
with:
27+
workspace: utils
28+
29+
test-integration:
30+
needs: build
31+
if: needs.build.outputs.cache-status != 'primary'
32+
secrets: inherit
33+
uses: ./.github/workflows/shared-test.yml
34+
with:
35+
workspace: utils
36+
test-type: integration
37+
38+
test-fork:
39+
needs: build
40+
if: needs.build.outputs.cache-status != 'primary'
41+
secrets: inherit
42+
uses: ./.github/workflows/shared-test.yml
43+
with:
44+
workspace: utils
45+
test-type: fork
46+
47+
test-coverage:
48+
needs: build
49+
if: needs.build.outputs.cache-status != 'primary'
50+
secrets: inherit
51+
uses: ./.github/workflows/shared-test.yml
52+
with:
53+
workspace: utils
54+
test-type: coverage

.github/workflows/shared-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ jobs:
4040
cache-path: |
4141
node_modules
4242
${{ inputs.workspace }}/cache
43+
${{ inputs.workspace }}/out
4344
${{ inputs.workspace }}/out-optimized
4445
fail-on-cache-miss: true
46+
sol-files-path: ${{ inputs.workspace }}/**/*.sol
4547

4648
- name: Run Bulloak check
4749
if: inputs.test-type == 'integration'

0 commit comments

Comments
 (0)