Skip to content

Commit

Permalink
wip: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Sep 4, 2024
1 parent d740403 commit 51bb927
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 25 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,30 @@ jobs:
^test.*
publish
# check:
# uses: ./.github/workflows/run.yml
# needs: [discover]
# with:
# earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['^check.*']) }}
# forge_version: ${{ inputs.forge_version }}
check:
uses: ./.github/workflows/run.yml
needs: [discover]
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['^check.*']) }}
forge_version: ${{ inputs.forge_version }}

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

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

publish:
uses: ./.github/workflows/publish.yml
#needs: [discover, check, build, test]
needs: [discover]
needs: [discover, check, build, test]
with:
earthfiles: ${{ toJson(fromJson(needs.discover.outputs.result)['publish']) }}
forge_version: ${{ inputs.forge_version }}
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
path: ${{ matrix.earthfile }}
- name: Get image and project
id: image
if: github.ref_name == github.event.repository.default_branch
run: |
EARTHFILE='${{ matrix.earthfile }}'
PROJECT="${EARTHFILE%+*}"
Expand All @@ -55,6 +56,7 @@ jobs:
echo "project=$PROJECT" >> $GITHUB_OUTPUT
- name: Publish
uses: ./forge/actions/publish
if: github.ref_name == github.event.repository.default_branch
with:
image: ${{ steps.image.outputs.image }}
project: ${{ steps.image.outputs.project }}
4 changes: 2 additions & 2 deletions forge/actions/publish/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion forge/actions/publish/dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions forge/actions/publish/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async function run() {
await tagImage(image, taggedImage);

core.info(`Pushing image ${taggedImage}`);
//await pushImage(taggedImage);
await pushImage(taggedImage);
}
}
} catch (error) {
Expand Down Expand Up @@ -162,7 +162,7 @@ function parseGitMonorepoTag(tag, project, aliases) {
if (path === project) {
return monoTag;
} else {
core.info(`Skipping tag as it does not match the project path`);
core.info(`Skipping tag as it does not match the project`);
return "";
}
} else {
Expand Down

0 comments on commit 51bb927

Please sign in to comment.