Not publish step notifications on failure.
@@ -3,17 +3,8 @@ name: Tessera CI Build
on: push
jobs:
- start:
- runs-on: ubuntu-latest
- steps:
- - uses: pioug/le-slack-message@v1.0.0
- with:
- ACTION_NAME: Start workflow
- JOB: ${{ toJson(job) }}
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
build:
runs-on: ubuntu-latest
- needs: [start]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
@@ -27,6 +18,7 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- uses: pioug/le-slack-message@v1.0.0
+ if: failure()
with:
ACTION_NAME: Build and populate maven cache
JOB: ${{ toJson(job) }}
@@ -52,6 +44,7 @@ jobs:
flags: unittests
fail_ci_if_error: true
- uses: pioug/le-slack-message@v1.0.0
+ if: failure()
with:
ACTION_NAME: Run unit tests
JOB: ${{ toJson(job) }}
@@ -74,6 +67,7 @@ jobs:
- run: ./gradlew build -x :tests:acceptance-test:build -x dependencyCheckAnalyze -x javadoc
- uses: pioug/le-slack-message@v1.0.0
+ if: failure()
with:
ACTION_NAME: Run gradle build
JOB: ${{ toJson(job) }}
@@ -95,6 +89,7 @@ jobs:
${{ runner.os }}-maven-
- run: mvn verify -pl tests/acceptance-test -P reduce-logging -o
- uses: pioug/le-slack-message@v1.0.0
+ if: failure()
with:
ACTION_NAME: Run integration tests
JOB: ${{ toJson(job) }}
@@ -121,6 +116,7 @@ jobs:
export PATH=$PATH:$PWD && popd
mvn verify -pl tests/acceptance-test -P vault-acceptance-tests,reduce-logging -o
- uses: pioug/le-slack-message@v1.0.0
+ if: failure()
with:
ACTION_NAME: Run vault integration tests
JOB: ${{ toJson(job) }}
@@ -179,6 +175,7 @@ jobs:
env:
MAVEN_OPTS: -Xms1024m -Xmx2048m
- uses: pioug/le-slack-message@v1.0.0
+ if: failure()
with:
ACTION_NAME: Run acceptance tests
JOB: ${{ toJson(job) }}
