Skip to content

Commit

Permalink
wip: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Sep 10, 2024
1 parent de8d7fb commit 3c5425e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 34 deletions.
67 changes: 34 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,47 +34,48 @@ jobs:
publish
release
check:
uses: ./.github/workflows/run.yml
needs: [discover]
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['^check.*']) }}
forge_version: ${{ inputs.forge_version }}
secrets:
earthly_token: ${{ secrets.earthly_token }}
# check:
# uses: ./.github/workflows/run.yml
# needs: [discover]
# with:
# earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['^check.*']) }}
# forge_version: ${{ inputs.forge_version }}
# secrets:
# earthly_token: ${{ secrets.earthly_token }}

build:
uses: ./.github/workflows/run.yml
needs: [discover, check]
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['^build.*']) }}
forge_version: ${{ inputs.forge_version }}
secrets:
earthly_token: ${{ secrets.earthly_token }}
# build:
# uses: ./.github/workflows/run.yml
# needs: [discover, check]
# with:
# earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['^build.*']) }}
# forge_version: ${{ inputs.forge_version }}
# secrets:
# earthly_token: ${{ secrets.earthly_token }}

test:
uses: ./.github/workflows/run.yml
needs: [discover, check, build]
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['^test.*']) }}
forge_version: ${{ inputs.forge_version }}
secrets:
earthly_token: ${{ secrets.earthly_token }}
# test:
# uses: ./.github/workflows/run.yml
# needs: [discover, check, build]
# with:
# earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['^test.*']) }}
# forge_version: ${{ inputs.forge_version }}
# secrets:
# earthly_token: ${{ secrets.earthly_token }}

publish:
uses: ./.github/workflows/publish.yml
needs: [discover, check, build, test]
#needs: [discover, check, build, test]
needs: [discover]
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['publish']) }}
forge_version: ${{ inputs.forge_version }}
secrets:
earthly_token: ${{ secrets.earthly_token }}

release:
uses: ./.github/workflows/release.yml
needs: [discover, check, build, test]
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['release']) }}
forge_version: ${{ inputs.forge_version }}
secrets:
earthly_token: ${{ secrets.earthly_token }}
# release:
# uses: ./.github/workflows/release.yml
# needs: [discover, check, build, test]
# with:
# earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['release']) }}
# forge_version: ${{ inputs.forge_version }}
# secrets:
# earthly_token: ${{ secrets.earthly_token }}
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
- name: Parse Earthfile reference
id: parse
run: |
EARTHFILE='${{ matrix.earthfile }}'
PROJECT="${EARTHFILE%+*}"
TARGET="${EARTHFILE#*+}"
Expand All @@ -47,8 +48,8 @@ jobs:
id: run
uses: ./forge/actions/run
with:
args: --container ${{ env.CONTAINER }} --tag ${{ env.TAG }}
path: ${{ matrix.earthfile }}
target_args: --container ${{ env.CONTAINER }} --tag ${{ env.TAG }}
- name: Publish
uses: ./forge/actions/publish
with:
Expand Down

0 comments on commit 3c5425e

Please sign in to comment.