chore: add retry to test steps in CI (#1517)

* chore: add retry to test steps of ci

* use another action for retry

* fix version

* use master version

* test with error

* return working version

* add env var

* return node test
This commit is contained in:
Sasha 2023-08-31 12:27:25 +02:00 committed by GitHub
parent e7e35f05ed
commit 73dd948698
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 33 additions and 12 deletions

View File

@ -16,6 +16,7 @@ on:
env:
NODE_JS: "18"
RETRY_ATTEMPTS: 3
jobs:
check:
@ -72,10 +73,15 @@ jobs:
node-version: ${{ env.NODE_JS }}
- uses: ./.github/actions/npm
- run: npm run build:esm
- run: npm run test:node
env:
DEBUG: ""
- uses: Wandalen/wretry.action@master
with:
attempt_limit: ${{ env.RETRY_ATTEMPTS }}
command: npm run test:node
with: |
DEBUG: ""
- name: Upload debug logs on failure
uses: actions/upload-artifact@v3
@ -104,10 +110,15 @@ jobs:
node-version: ${{ env.NODE_JS }}
- uses: ./.github/actions/npm
- run: npm run build:esm
- run: npm run test:optional --workspace=@waku/tests
env:
DEBUG: ""
- uses: Wandalen/wretry.action@master
with:
attempt_limit: ${{ env.RETRY_ATTEMPTS }}
command: npm run test:optional --workspace=@waku/tests
with: |
DEBUG: ""
node_with_go_waku_master:
runs-on: ubuntu-latest
@ -124,10 +135,15 @@ jobs:
node-version: ${{ env.NODE_JS }}
- uses: ./.github/actions/npm
- run: npm run build:esm
- run: npm run test:node
env:
DEBUG: "waku:nwaku*,waku:test*"
- uses: Wandalen/wretry.action@master
with:
attempt_limit: ${{ env.RETRY_ATTEMPTS }}
command: npm run test:node
with: |
DEBUG: "waku:nwaku*,waku:test*"
- name: Upload debug logs on failure
uses: actions/upload-artifact@v3
@ -156,10 +172,15 @@ jobs:
node-version: ${{ env.NODE_JS }}
- uses: ./.github/actions/npm
- run: npm run build:esm
- run: npm run test:node
env:
DEBUG: "waku:nwaku*,waku:test*"
- uses: Wandalen/wretry.action@master
with:
attempt_limit: ${{ env.RETRY_ATTEMPTS }}
command: npm run test:node
with: |
DEBUG: "waku:nwaku*,waku:test*"
- name: Upload debug logs on failure
uses: actions/upload-artifact@v3