Skip to content

Commit

Permalink
wip: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Oct 30, 2024
1 parent e528561 commit 7eeec00
Showing 1 changed file with 73 additions and 71 deletions.
144 changes: 73 additions & 71 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Forge
uses: input-output-hk/catalyst-forge/actions/install@master
uses: input-output-hk/catalyst-forge/actions/install@mve-next
if: ${{ inputs.forge_version != 'local' }}
with:
version: ${{ inputs.forge_version }}
- name: Install Local Forge
uses: input-output-hk/catalyst-forge/actions/install-local@master
uses: input-output-hk/catalyst-forge/actions/install-local@mve-next
if: ${{ inputs.forge_version == 'local' }}
with:
earthly_token: ${{ secrets.earthly_token }}
Expand All @@ -61,14 +61,14 @@ jobs:
echo "skip=false" >> $GITHUB_OUTPUT
fi
- name: Setup CI
uses: input-output-hk/catalyst-forge/actions/setup@master
uses: input-output-hk/catalyst-forge/actions/setup@mve-next
with:
skip_docker: 'true'
skip_github: 'true'
skip_earthly: ${{ steps.local.outputs.skip }}
- name: Discovery
id: discovery
uses: input-output-hk/catalyst-forge/actions/discovery@master
uses: input-output-hk/catalyst-forge/actions/discovery@mve-next
with:
filters: |
${{ env.FORGE_REGEX_CHECK }}
Expand All @@ -79,67 +79,68 @@ jobs:
${{ env.FORGE_REGEX_RELEASE }}
${{ env.FORGE_REGEX_PUBLISH }}
check:
uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@master
needs: [discover]
if: (fromJson(needs.discover.outputs.earthfiles)['^check(-.*)?$'] != null) && !failure() && !cancelled()
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^check(-.*)?$']) }}
forge_version: ${{ inputs.forge_version }}
local: ${{ inputs.local }}
verbosity: ${{ inputs.verbosity }}
secrets:
earthly_token: ${{ secrets.earthly_token }}
# check:
# uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@mve-next
# needs: [discover]
# if: (fromJson(needs.discover.outputs.earthfiles)['^check(-.*)?$'] != null) && !failure() && !cancelled()
# with:
# earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^check(-.*)?$']) }}
# forge_version: ${{ inputs.forge_version }}
# local: ${{ inputs.local }}
# verbosity: ${{ inputs.verbosity }}
# secrets:
# earthly_token: ${{ secrets.earthly_token }}

build:
uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@master
needs: [discover, check]
if: (fromJson(needs.discover.outputs.earthfiles)['^build(-.*)?$'] != null) && !failure() && !cancelled()
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^build(-.*)?$']) }}
forge_version: ${{ inputs.forge_version }}
local: ${{ inputs.local }}
verbosity: ${{ inputs.verbosity }}
secrets:
earthly_token: ${{ secrets.earthly_token }}
# build:
# uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@mve-next
# needs: [discover, check]
# if: (fromJson(needs.discover.outputs.earthfiles)['^build(-.*)?$'] != null) && !failure() && !cancelled()
# with:
# earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^build(-.*)?$']) }}
# forge_version: ${{ inputs.forge_version }}
# local: ${{ inputs.local }}
# verbosity: ${{ inputs.verbosity }}
# secrets:
# earthly_token: ${{ secrets.earthly_token }}

package:
uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@master
needs: [discover, check, build]
if: (fromJson(needs.discover.outputs.earthfiles)['^package(-.*)?$'] != null) && !failure() && !cancelled()
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^package(-.*)?$']) }}
forge_version: ${{ inputs.forge_version }}
local: ${{ inputs.local }}
verbosity: ${{ inputs.verbosity }}
secrets:
earthly_token: ${{ secrets.earthly_token }}
# package:
# uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@mve-next
# needs: [discover, check, build]
# if: (fromJson(needs.discover.outputs.earthfiles)['^package(-.*)?$'] != null) && !failure() && !cancelled()
# with:
# earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^package(-.*)?$']) }}
# forge_version: ${{ inputs.forge_version }}
# local: ${{ inputs.local }}
# verbosity: ${{ inputs.verbosity }}
# secrets:
# earthly_token: ${{ secrets.earthly_token }}

test:
uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@master
needs: [discover, check, build, package]
if: (fromJson(needs.discover.outputs.earthfiles)['^test(-.*)?$'] != null) && !failure() && !cancelled()
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^test(-.*)?$']) }}
forge_version: ${{ inputs.forge_version }}
local: ${{ inputs.local }}
verbosity: ${{ inputs.verbosity }}
secrets:
earthly_token: ${{ secrets.earthly_token }}
# test:
# uses: input-output-hk/catalyst-forge/.github/workflows/run.yml@mve-next
# needs: [discover, check, build, package]
# if: (fromJson(needs.discover.outputs.earthfiles)['^test(-.*)?$'] != null) && !failure() && !cancelled()
# with:
# earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^test(-.*)?$']) }}
# forge_version: ${{ inputs.forge_version }}
# local: ${{ inputs.local }}
# verbosity: ${{ inputs.verbosity }}
# secrets:
# earthly_token: ${{ secrets.earthly_token }}

docs:
uses: input-output-hk/catalyst-forge/.github/workflows/docs.yml@master
needs: [discover, check, build, test]
if: (fromJson(needs.discover.outputs.earthfiles)['^docs(-.*)?$'] != null) && !failure() && !cancelled()
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^docs(-.*)?$']) }}
forge_version: ${{ inputs.forge_version }}
secrets:
earthly_token: ${{ secrets.earthly_token }}
# docs:
# uses: input-output-hk/catalyst-forge/.github/workflows/docs.yml@mve-next
# needs: [discover, check, build, test]
# if: (fromJson(needs.discover.outputs.earthfiles)['^docs(-.*)?$'] != null) && !failure() && !cancelled()
# with:
# earthfiles: ${{ toJson(fromJson(needs.discover.outputs.earthfiles)['^docs(-.*)?$']) }}
# forge_version: ${{ inputs.forge_version }}
# secrets:
# earthly_token: ${{ secrets.earthly_token }}

release:
uses: input-output-hk/catalyst-forge/.github/workflows/release.yml@fix-argo-container
needs: [discover, check, build, test]
uses: input-output-hk/catalyst-forge/.github/workflows/release.yml@mve-next
#needs: [discover, check, build, test]
needs: [discover]
if: (fromJson(needs.discover.outputs.releases)[0] != null) && !failure() && !cancelled()
with:
releases: ${{ needs.discover.outputs.releases }}
Expand All @@ -149,20 +150,21 @@ jobs:
secrets:
earthly_token: ${{ secrets.earthly_token }}

deploy:
uses: input-output-hk/catalyst-forge/.github/workflows/deploy.yml@master
needs: [discover, check, build, test, release]
if: (fromJson(needs.discover.outputs.deployments)[0] != null) && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && !failure() && !cancelled()
with:
deployments: ${{ needs.discover.outputs.deployments }}
forge_version: ${{ inputs.forge_version }}
local: ${{ inputs.local }}
verbosity: ${{ inputs.verbosity }}
secrets:
earthly_token: ${{ secrets.earthly_token }}
# deploy:
# uses: input-output-hk/catalyst-forge/.github/workflows/deploy.yml@mve-next
# needs: [discover, check, build, test, release]
# if: (fromJson(needs.discover.outputs.deployments)[0] != null) && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && !failure() && !cancelled()
# with:
# deployments: ${{ needs.discover.outputs.deployments }}
# forge_version: ${{ inputs.forge_version }}
# local: ${{ inputs.local }}
# verbosity: ${{ inputs.verbosity }}
# secrets:
# earthly_token: ${{ secrets.earthly_token }}

final:
needs: [check, build, package, test, release]
#needs: [check, build, package, test, release]
needs: [discover]
if: (!failure() && !cancelled())
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 7eeec00

Please sign in to comment.