Skip to content

Commit

Permalink
wip: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Aug 31, 2024
1 parent 03d0d2e commit 5b3fa1c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
workflow_call:
inputs:
earthfiles:
description: |
A JSON list of Earthfile paths+targets to run
required: true
type: string

jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
earthfile: ${{ fromJson(inputs.earthfiles) }}
steps:
- uses: actions/checkout@v4
- name: Setup CI
uses: ./forge/actions/setup
with:
forge_version: local
- name: Run
uses: ./forge/actions/run
with:
path: ${{ matrix.earthfile }}
13 changes: 8 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ permissions:
id-token: write

jobs:
test:
discover:
runs-on: ubuntu-latest
outputs:
result: ${{ steps.discovery.outputs.result }}
steps:
- uses: actions/checkout@v4
- name: Setup
Expand All @@ -22,7 +24,8 @@ jobs:
filters: |
^check.*
^test.*
- name: Run
uses: ./forge/actions/run
with:
path: ./forge/cli+test
check:
uses: ./.github/workflows/run.yml
needs: [discover]
with:
earthfiles: ${{ fromJson(needs.discover.outputs.result)["^check.*"] }}

0 comments on commit 5b3fa1c

Please sign in to comment.