-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moving continue on error to job level
- Loading branch information
1 parent
b52ad75
commit 89214cf
Showing
2 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,10 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
version: ${{ fromJson(needs.vite-hardhat-setup.outputs.versions) }} | ||
# if it errors, we still need to know about it! | ||
continue-on-error: true | ||
outputs: | ||
is_stable: ${{ steps.get-stability.outputs.is_stable }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -98,16 +102,30 @@ jobs: | |
- name: Run test | ||
run: yarn test | ||
id: yarn_test | ||
continue-on-error: ${{ steps.get-stability.outputs.is_stable == 'false' }} | ||
|
||
- name: Send GitHub Action trigger data to Slack workflow | ||
id: slack | ||
notify: | ||
needs: vite-hardhat-test-drift | ||
runs-on: ubuntu-latest | ||
if: ${{ needs.vite-hardhat-test-drift.result == 'failure' }} | ||
steps: | ||
- name: Send GitHub Action trigger data to Slack workflow - Stable | ||
uses: slackapi/[email protected] | ||
if: ${{ needs.vite-hardhat-test-drift.outputs.is_stable == 'true' }} | ||
with: | ||
payload: | | ||
{ | ||
"text": "Oooops, seems like latest stable Noir breaks noir-starter! Projects needing updating: vite-hardhat ${{ matrix.version }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
- name: Send GitHub Action trigger data to Slack workflow - Prerelease | ||
uses: slackapi/[email protected] | ||
if: ${{ failure() && steps.get-stability.outputs.is_stable == 'false' }} | ||
if: ${{ needs.vite-hardhat-test-drift.outputs.is_stable == 'false' }} | ||
with: | ||
payload: | | ||
{ | ||
"text": "Once the prerelease becomes stable, projects need updating: vite-hardhat ${{ matrix.version }}" | ||
"text": "Heads up DevRel! Once the prerelease becomes stable, the following project will break: vite-hardhat ${{ matrix.version }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,10 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
version: ${{ fromJson(needs.with-foundry-setup.outputs.versions) }} | ||
# if it errors, we still need to know about it! | ||
continue-on-error: true | ||
outputs: | ||
is_stable: ${{ steps.get-stability.outputs.is_stable }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -99,14 +103,29 @@ jobs: | |
run: | | ||
forge test --optimize --optimizer-runs 5000 --evm-version london | ||
- name: Send GitHub Action trigger data to Slack workflow | ||
id: slack | ||
notify: | ||
needs: with-foundry-test-drift | ||
runs-on: ubuntu-latest | ||
if: ${{ needs.with-foundry-test-drift.result == 'failure' }} | ||
steps: | ||
- name: Send GitHub Action trigger data to Slack workflow - Stable | ||
uses: slackapi/[email protected] | ||
if: ${{ needs.with-foundry-test-drift.outputs.is_stable == 'true' }} | ||
with: | ||
payload: | | ||
{ | ||
"text": "Oooops, seems like latest stable Noir breaks noir-starter! Projects needing updating: with-foundry ${{ matrix.version }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
|
||
- name: Send GitHub Action trigger data to Slack workflow - Prerelease | ||
uses: slackapi/[email protected] | ||
if: ${{ failure() && steps.get-stability.outputs.is_stable == 'false' }} | ||
if: ${{ needs.with-foundry-test-drift.outputs.is_stable == 'false' }} | ||
with: | ||
payload: | | ||
{ | ||
"text": "Once the prerelease becomes stable, projects need updating: with-foundry ${{ matrix.version }}" | ||
"text": "Heads up DevRel! Once the prerelease becomes stable, the following project will break: with-foundry ${{ matrix.version }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |