chore: move the failed retries on test level (#1573)

Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com>
This commit is contained in:
fbarbu15 2023-09-18 12:48:47 +03:00 committed by GitHub
parent bb4fdaa248
commit aae1d9f68b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 26 deletions

View File

@ -24,7 +24,6 @@ on:
env:
NODE_JS: "18"
RETRY_ATTEMPTS: 3
jobs:
check:
@ -96,12 +95,9 @@ jobs:
- run: npm run build:esm
- uses: Wandalen/wretry.action@master
with:
attempt_limit: ${{ env.RETRY_ATTEMPTS }}
command: npm run test:node
with: |
DEBUG: ""
- run: npm run test:node
env:
DEBUG: ""
- name: Upload debug logs on failure
uses: actions/upload-artifact@v3
@ -135,12 +131,9 @@ jobs:
- run: npm run build:esm
- uses: Wandalen/wretry.action@master
with:
attempt_limit: ${{ env.RETRY_ATTEMPTS }}
command: npm run test:optional --workspace=@waku/tests
with: |
DEBUG: ""
- run: npm run test:optional --workspace=@waku/tests
env:
DEBUG: ""
node_with_go_waku_master:
runs-on: ubuntu-latest
@ -163,12 +156,9 @@ jobs:
- run: npm run build:esm
- uses: Wandalen/wretry.action@master
with:
attempt_limit: ${{ env.RETRY_ATTEMPTS }}
command: npm run test:node
with: |
DEBUG: "waku:nwaku*,waku:test*"
- run: npm run test:node
env:
DEBUG: "waku:nwaku*,waku:test*"
- name: Upload debug logs on failure
uses: actions/upload-artifact@v3
@ -203,12 +193,9 @@ jobs:
- run: npm run build:esm
- uses: Wandalen/wretry.action@master
with:
attempt_limit: ${{ env.RETRY_ATTEMPTS }}
command: npm run test:node
with: |
DEBUG: "waku:nwaku*,waku:test*"
- run: npm run test:node
env:
DEBUG: "waku:nwaku*,waku:test*"
- name: Upload debug logs on failure
uses: actions/upload-artifact@v3

View File

@ -6,5 +6,6 @@
"experimental-specifier-resolution=node",
"loader=ts-node/esm"
],
"exit": true
"exit": true,
"retries": 3
}