Skip to content

Commit 5b3fa1c

Browse files
committed
wip: testing
1 parent 03d0d2e commit 5b3fa1c

File tree

2 files changed

+34
-5
lines changed

2 files changed

+34
-5
lines changed

.github/workflows/run.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on:
2+
workflow_call:
3+
inputs:
4+
earthfiles:
5+
description: |
6+
A JSON list of Earthfile paths+targets to run
7+
required: true
8+
type: string
9+
10+
jobs:
11+
run:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
earthfile: ${{ fromJson(inputs.earthfiles) }}
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Setup CI
20+
uses: ./forge/actions/setup
21+
with:
22+
forge_version: local
23+
- name: Run
24+
uses: ./forge/actions/run
25+
with:
26+
path: ${{ matrix.earthfile }}

.github/workflows/test.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ permissions:
77
id-token: write
88

99
jobs:
10-
test:
10+
discover:
1111
runs-on: ubuntu-latest
12+
outputs:
13+
result: ${{ steps.discovery.outputs.result }}
1214
steps:
1315
- uses: actions/checkout@v4
1416
- name: Setup
@@ -22,7 +24,8 @@ jobs:
2224
filters: |
2325
^check.*
2426
^test.*
25-
- name: Run
26-
uses: ./forge/actions/run
27-
with:
28-
path: ./forge/cli+test
27+
check:
28+
uses: ./.github/workflows/run.yml
29+
needs: [discover]
30+
with:
31+
earthfiles: ${{ fromJson(needs.discover.outputs.result)["^check.*"] }}

0 commit comments

Comments
 (0)