-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1 KB
/
test.yml
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
name: Test
on:
push:
permissions:
contents: read
id-token: write
jobs:
discover:
runs-on: ubuntu-latest
outputs:
result: ${{ steps.discovery.outputs.result }}
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./forge/actions/setup
with:
forge_version: local
- name: Discovery
id: discovery
uses: ./forge/actions/discovery
with:
filters: |
^build.*
^check.*
^test.*
check:
uses: ./.github/workflows/run.yml
needs: [discover]
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['^check.*']) }}
build:
uses: ./.github/workflows/run.yml
needs: [discover, check]
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['^build.*']) }}
test:
uses: ./.github/workflows/run.yml
needs: [discover, check, build]
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['^test.*']) }}