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