Skip to content

Commit

Permalink
chores(ci): deactivate the slack notification for prover-ci (#546)
Browse files Browse the repository at this point in the history
* chores(ci): deactivate the slack notification for prover-ci

* Update .github/workflows/prover-testing.yml

---------

Signed-off-by: AlexandreBelling <alexandrebelling8@gmail.com>
Co-authored-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>
  • Loading branch information
AlexandreBelling and kyzooghost authored Jan 15, 2025
1 parent 27cc9eb commit 522d9f1
Showing 1 changed file with 1 addition and 55 deletions.
56 changes: 1 addition & 55 deletions .github/workflows/prover-testing.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
name: Prover testing CI

on:
workflow_call:
secrets:
SLACK_WEBHOOK_CI_PROVER_FAIL:
required: true
SLACK_WEBHOOK_CI_PROVER_SUCCESS:
required: true

on: workflow_call
env:
GOPROXY: "https://proxy.golang.org"

Expand Down Expand Up @@ -93,50 +86,3 @@ jobs:
if: matrix.go-version == '1.20.x'
run: |
go test -p=1 -tags=nocorset,fuzzlight -timeout=30m -short -race ./...
slack-workflow-status-failed:
if: failure()
name: Prover notify slack
needs:
- staticcheck
- test
runs-on: [self-hosted, ubuntu-20.04, X64, small]
steps:
- name: Notify slack -- workflow failed
id: slack
uses: slackapi/slack-github-action@v1.23.0
with:
payload: |
{
"actor": "${{ github.actor }}",
"repo": "${{ github.repository }}",
"status": "FAIL",
"title": "${{ github.event.pull_request.title }}",
"pr": "${{ github.event.pull_request.head.ref }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CI_PROVER_FAIL }}

slack-workflow-status-success:
if: success()
name: Prover notify slack
needs:
- staticcheck
- test
runs-on: [self-hosted, ubuntu-20.04, X64, small]
steps:
- name: Notify slack -- workflow succeeded
id: slack
uses: slackapi/slack-github-action@v1.23.0
with:
payload: |
{
"actor": "${{ github.actor }}",
"repo": "${{ github.repository }}",
"status": "SUCCESS",
"title": "${{ github.event.pull_request.title }}",
"pr": "${{ github.event.pull_request.head.ref }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CI_PROVER_SUCCESS }}

0 comments on commit 522d9f1

Please sign in to comment.