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 bdbe5b1 commit 81759c9
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 53 deletions.
102 changes: 50 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,60 +23,58 @@ jobs:
with:
earthly_token: ${{ secrets.earthly_token }}
forge_version: ${{ inputs.forge_version }}
- name: Testing
run: forge tag .
# - name: Discovery
# id: discovery
# uses: ./forge/actions/discovery
# with:
# filters: |
# ^build.*
# ^check.*
# ^test.*
# publish
# release
- name: Discovery
id: discovery
uses: ./forge/actions/discovery
with:
filters: |
^build.*
^check.*
^test.*
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]
# with:
# earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['publish']) }}
# forge_version: ${{ inputs.forge_version }}
# secrets:
# earthly_token: ${{ secrets.earthly_token }}
publish:
uses: ./.github/workflows/publish.yml
needs: [discover, check, build, test]
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 }}
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
echo "project=$PROJECT" >> $GITHUB_OUTPUT
- name: Publish
uses: ./forge/actions/publish
if: github.ref_name == github.event.repository.default_branch
#if: github.ref_name == github.event.repository.default_branch
with:
image: ${{ steps.image.outputs.image }}
project: ${{ steps.image.outputs.project }}

0 comments on commit 81759c9

Please sign in to comment.