Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tyitang committed Jul 17, 2024
1 parent a3d4b99 commit 2fcf2cf
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,22 @@ jobs:
publish_branch: gh-pages
keep_files: true

- name: Push Slack Notification
uses: storyprotocol/gha-workflows/.github/workflows/reusable-slack-notifs.yml@main
with:
short-desc: "${{ github.repository }}: API Integration Tests have been completed. Check the results at https://storyprotocol.github.io/api-integration-tests/index.html"
title: "API Integration Test Results"
img-url: "http://www.quickmeme.com/img/b9/b9848df257b95cd39585368475a4b4e4a3a8c774f7390226daecb79b912087ad.jpg"
img-alt-text: "API Integration Test Results"
secrets:
channel-name: ${{ secrets.SLACK_CHANNEL_ID_API_INTEGRATION_TESTS }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}

- name: Upload Test Results
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
# if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
name: sepolia-test-reports
path: |
./playwright-report-sepolia/index.html
push-slack-notification:
name: Push Slack Notification
uses: storyprotocol/gha-workflows/.github/workflows/reusable-slack-notifs.yml@main
with:
short-desc: "${{ github.repository }}: API Integration Tests have been completed. Check the results at https://storyprotocol.github.io/api-integration-tests/index.html"
title: "API Integration Test Results"
img-url: "http://www.quickmeme.com/img/b9/b9848df257b95cd39585368475a4b4e4a3a8c774f7390226daecb79b912087ad.jpg"
img-alt-text: "API Integration Test Results"
secrets:
channel-name: ${{ secrets.SLACK_CHANNEL_ID_API_INTEGRATION_TESTS }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
24 changes: 13 additions & 11 deletions .github/workflows/prod-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,22 @@ jobs:
publish_branch: gh-pages
keep_files: true

- name: Push Slack Notification
uses: storyprotocol/gha-workflows/.github/workflows/reusable-slack-notifs.yml@main
with:
short-desc: "${{ github.repository }}: API Integration Tests of Prod have been completed. Check the results at https://storyprotocol.github.io/api-integration-tests/index.html"
title: "API Integration Test Results of Prod"
img-url: "http://www.quickmeme.com/img/b9/b9848df257b95cd39585368475a4b4e4a3a8c774f7390226daecb79b912087ad.jpg"
img-alt-text: "API Integration Test Results"
secrets:
channel-name: ${{ secrets.SLACK_CHANNEL_ID_API_INTEGRATION_TESTS }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}

- name: Upload Test Results
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
# if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
name: sepolia-test-reports
path: |
./playwright-report-sepolia/index.html
push-slack-notification:
name: Push Slack Notification
uses: storyprotocol/gha-workflows/.github/workflows/reusable-slack-notifs.yml@main
with:
short-desc: "${{ github.repository }}: API Integration Tests of Prod have been completed. Check the results at https://storyprotocol.github.io/api-integration-tests/index.html"
title: "API Integration Test Results of Prod"
img-url: "http://www.quickmeme.com/img/b9/b9848df257b95cd39585368475a4b4e4a3a8c774f7390226daecb79b912087ad.jpg"
img-alt-text: "API Integration Test Results"
secrets:
channel-name: ${{ secrets.SLACK_CHANNEL_ID_API_INTEGRATION_TESTS }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 2fcf2cf

Please sign in to comment.