Skip to content

Commit

Permalink
Updated ci.yml and e2e.yml files for Slack webhooks (#117)
Browse files Browse the repository at this point in the history
* Updated yml files for Salck webhooks

* Reported only failed cases / Intended format error

* Fixed format error
  • Loading branch information
jhnaldo authored Dec 1, 2022
1 parent cb94bf3 commit 7ea05de
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ jobs:
env:
ESMETA_HOME: ${{ github.workspace }}
run: sbt basicTest

- name: Report Status
if: failure()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
lint:
runs-on: ubuntu-latest
steps:
Expand All @@ -25,3 +34,12 @@ jobs:

- name: Check code format
run: sbt formatCheck

- name: Report Status
if: failure()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
11 changes: 10 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Run e2e tests
run: |
sbt assembly
cd $ESMETA_HOME/client
cd $ESMETA_HOME/client
npm ci
npx playwright install chromium --with-deps
npx playwright test --project=chromium
Expand All @@ -25,3 +25,12 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30

- name: Report Status
if: failure()
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit 7ea05de

Please sign in to comment.