mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-04-25 02:22:27 +00:00
ci: Dump rust-peer logs on failure (#25)
* Dump rust-peer logs on failure * Get rid of the while loop
This commit is contained in:
parent
8e973ffce5
commit
da1f1fea80
13
.github/workflows/tests.yml
vendored
13
.github/workflows/tests.yml
vendored
@ -97,14 +97,7 @@ jobs:
|
||||
|
||||
- run: npm run compile-aqua -- -c "UNIQUE_CONST = 1" -c "ANOTHER_CONST = \"ab\""
|
||||
- run: npm run build
|
||||
- run: |
|
||||
export retries=2
|
||||
while ((retries)); do
|
||||
if npm run test; then
|
||||
exit 0
|
||||
fi
|
||||
((retries--))
|
||||
done
|
||||
- run: npm run test
|
||||
|
||||
- name: Report failure to slack
|
||||
if: inputs.fluence-env != 'local' && failure()
|
||||
@ -129,3 +122,7 @@ jobs:
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
- name: Dump rust-peer logs on failure
|
||||
if: failure() || cancelled()
|
||||
uses: jwalton/gh-docker-logs@v1
|
||||
|
Loading…
x
Reference in New Issue
Block a user