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: env:
NODE_JS: "18" NODE_JS: "18"
RETRY_ATTEMPTS: 3
jobs: jobs:
check: check:
@ -96,11 +95,8 @@ jobs:
- run: npm run build:esm - run: npm run build:esm
- uses: Wandalen/wretry.action@master - run: npm run test:node
with: env:
attempt_limit: ${{ env.RETRY_ATTEMPTS }}
command: npm run test:node
with: |
DEBUG: "" DEBUG: ""
- name: Upload debug logs on failure - name: Upload debug logs on failure
@ -135,11 +131,8 @@ jobs:
- run: npm run build:esm - run: npm run build:esm
- uses: Wandalen/wretry.action@master - run: npm run test:optional --workspace=@waku/tests
with: env:
attempt_limit: ${{ env.RETRY_ATTEMPTS }}
command: npm run test:optional --workspace=@waku/tests
with: |
DEBUG: "" DEBUG: ""
node_with_go_waku_master: node_with_go_waku_master:
@ -163,11 +156,8 @@ jobs:
- run: npm run build:esm - run: npm run build:esm
- uses: Wandalen/wretry.action@master - run: npm run test:node
with: env:
attempt_limit: ${{ env.RETRY_ATTEMPTS }}
command: npm run test:node
with: |
DEBUG: "waku:nwaku*,waku:test*" DEBUG: "waku:nwaku*,waku:test*"
- name: Upload debug logs on failure - name: Upload debug logs on failure
@ -203,11 +193,8 @@ jobs:
- run: npm run build:esm - run: npm run build:esm
- uses: Wandalen/wretry.action@master - run: npm run test:node
with: env:
attempt_limit: ${{ env.RETRY_ATTEMPTS }}
command: npm run test:node
with: |
DEBUG: "waku:nwaku*,waku:test*" DEBUG: "waku:nwaku*,waku:test*"
- name: Upload debug logs on failure - name: Upload debug logs on failure

View File

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