diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 02ce664..912e480 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -97,7 +97,14 @@ jobs: - run: npm run compile-aqua -- -c "UNIQUE_CONST = 1" -c "ANOTHER_CONST = \"ab\"" - run: npm run build - - run: npm run test + - run: | + export retries=2 + while ((retries)); do + if npm run test; then + exit 0 + fi + ((retries--)) + done - name: Report failure to slack if: inputs.fluence-env != 'local' && failure() @@ -107,9 +114,9 @@ jobs: attachments: | [ { - "color": "bad", - "author_name": "${{ github.actor }}", - "author_icon": "${{ github.event.sender.avatar_url }}", + "color": "danger", + "author_name": "github[1h]", + "author_icon": "https://github.githubassets.com/images/modules/logos_page/Octocat.png", "fields": [ { "title": "Fluence environment", @@ -117,7 +124,7 @@ jobs: }, { "title": "GitHub Actions URL", - "value": "${{ github.event.repository.url }}/actions/runs/${{ github.run_id }}" + "value": "https://github.com/fluencelabs/aqua-playground/actions/runs/${{ github.run_id }}" }, ] }