Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add slack notification of failure scheduled checks #961

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/scheduled_lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ name: Scheduled checks
jobs:
tests:
name: Run tests
runs-on: [ self-hosted, heavy ]
runs-on: github-hosted-heavy-runner
strategy:
fail-fast: false
matrix:
profile: [ mainnet, testnet ]
profile: [ mainnet, mainnet-silo, testnet, testnet-silo ]
steps:
- name: Potential broken submodules fix
run: |
Expand All @@ -21,8 +21,13 @@ jobs:
run: scripts/build-neard-sandbox.sh ${{ matrix.profile }}
- name: Test ${{ matrix.profile }}
run: cargo make --profile ${{ matrix.profile }} test-flow
- name: Test ${{ matrix.profile }}-silo
run: cargo make --profile ${{ matrix.profile }}-silo test-flow
- uses: 8398a7/action-slack@v3
if: failure()
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

checks:
name: Run checks
Expand All @@ -34,3 +39,10 @@ jobs:
- name: Clone the repository
uses: actions/checkout@v4
- run: cargo make check
- uses: 8398a7/action-slack@v3
if: failure()
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Loading