File tree 2 files changed +34
-5
lines changed
2 files changed +34
-5
lines changed Original file line number Diff line number Diff line change
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 }}
Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ permissions:
7
7
id-token : write
8
8
9
9
jobs :
10
- test :
10
+ discover :
11
11
runs-on : ubuntu-latest
12
+ outputs :
13
+ result : ${{ steps.discovery.outputs.result }}
12
14
steps :
13
15
- uses : actions/checkout@v4
14
16
- name : Setup
22
24
filters : |
23
25
^check.*
24
26
^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.*"] }}
You can’t perform that action at this time.
0 commit comments