Skip to content

Commit

Permalink
fixup if works
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Dec 18, 2024
1 parent 29667ce commit 28219f4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,45 +70,46 @@ jobs:
build-templates:
name: Build templates for Dependabot
needs: workflow-config
if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }}
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.LASTMJS_GITHUB_TOKEN }}

- uses: ./.github/actions/setup_node
if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }}

- uses: ./.github/actions/setup_dfx
if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }}

- run: npm install
if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }}

- name: Install global dependencies
if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }}
run: |
AZLE_VERBOSE=true npx azle install-global-dependencies --rust --wasi2ic
- name: Build stable template
if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }}
run: AZLE_VERBOSE=true npx azle template

- name: Build experimental template
if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }}
run: AZLE_VERBOSE=true npx azle template --experimental

- uses: ./.github/actions/commit_and_push
if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }}
with:
branch-name: ${{ github.head_ref }}
commit-message: 'chore: update templates for dependency changes'
gpg_signing_key: ${{ secrets.GPG_SIGNING_KEY }}

outputs:
result: success

get-exclude-dirs:
name: Get exclude directories
needs:
- workflow-config
- build-templates
if: ${{ always() && (needs.build-templates.result == 'success' || needs.build-templates.result == 'skipped') }}
needs: workflow-config
runs-on: ubuntu-latest
outputs:
exclude-dirs: ${{ steps.get-exclude-dirs.outputs.exclude-dirs }}
Expand All @@ -127,6 +128,7 @@ jobs:
needs:
- workflow-config
- get-exclude-dirs
- build-templates
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 28219f4

Please sign in to comment.