ci: Print versions to check summary (#30)

* Print versions to check summary

* Always dump logs and versions info

* Fixes
This commit is contained in:
Anatolios Laskaris 2022-10-31 16:59:00 +03:00 committed by GitHub
parent e4afeb5774
commit fe3f3d8c42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,30 +99,18 @@ jobs:
- run: npm run build - run: npm run build
- run: npm run test - run: npm run test
- name: Report failure to slack - name: Print versions to check summary
if: inputs.fluence-env != 'local' && failure() if: always()
uses: tokorom/action-slack-incoming-webhook@v1.1.4 run: |
with: cat <<SNAPSHOT >> $GITHUB_STEP_SUMMARY
text: aqua-playground healthcheck failed ## Used versions
attachments: | | name | version |
[ | ---------- | -------------------------------------------------------------------- |
{ | rust-peer | $(docker run --rm --entrypoint=fluence ${RUST_PEER_IMAGE} --version) |
"color": "danger", | aqua | $(npx aqua --version) |
"author_name": "github[1h]", | fluence-js | $(npm view fluence-js version) |
"author_icon": "https://github.githubassets.com/images/modules/logos_page/Octocat.png", SNAPSHOT
"fields": [
{
"title": "Fluence environment",
"value": "${{ inputs.fluence-env }}"
},
{
"title": "GitHub Actions URL",
"value": "https://github.com/fluencelabs/aqua-playground/actions/runs/${{ github.run_id }}"
},
]
}
]
- name: Dump rust-peer logs on failure - name: Dump rust-peer logs
if: failure() || cancelled() if: always()
uses: jwalton/gh-docker-logs@v1 uses: jwalton/gh-docker-logs@v1