mirror of https://github.com/waku-org/js-waku.git
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:
parent
e7e35f05ed
commit
73dd948698
|
@ -16,6 +16,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NODE_JS: "18"
|
NODE_JS: "18"
|
||||||
|
RETRY_ATTEMPTS: 3
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
|
@ -72,9 +73,14 @@ jobs:
|
||||||
node-version: ${{ env.NODE_JS }}
|
node-version: ${{ env.NODE_JS }}
|
||||||
|
|
||||||
- uses: ./.github/actions/npm
|
- uses: ./.github/actions/npm
|
||||||
|
|
||||||
- run: npm run build:esm
|
- run: npm run build:esm
|
||||||
- run: npm run test:node
|
|
||||||
env:
|
- uses: Wandalen/wretry.action@master
|
||||||
|
with:
|
||||||
|
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
|
||||||
|
@ -104,9 +110,14 @@ jobs:
|
||||||
node-version: ${{ env.NODE_JS }}
|
node-version: ${{ env.NODE_JS }}
|
||||||
|
|
||||||
- uses: ./.github/actions/npm
|
- uses: ./.github/actions/npm
|
||||||
|
|
||||||
- run: npm run build:esm
|
- run: npm run build:esm
|
||||||
- run: npm run test:optional --workspace=@waku/tests
|
|
||||||
env:
|
- uses: Wandalen/wretry.action@master
|
||||||
|
with:
|
||||||
|
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:
|
||||||
|
@ -124,9 +135,14 @@ jobs:
|
||||||
node-version: ${{ env.NODE_JS }}
|
node-version: ${{ env.NODE_JS }}
|
||||||
|
|
||||||
- uses: ./.github/actions/npm
|
- uses: ./.github/actions/npm
|
||||||
|
|
||||||
- run: npm run build:esm
|
- run: npm run build:esm
|
||||||
- run: npm run test:node
|
|
||||||
env:
|
- uses: Wandalen/wretry.action@master
|
||||||
|
with:
|
||||||
|
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
|
||||||
|
@ -156,9 +172,14 @@ jobs:
|
||||||
node-version: ${{ env.NODE_JS }}
|
node-version: ${{ env.NODE_JS }}
|
||||||
|
|
||||||
- uses: ./.github/actions/npm
|
- uses: ./.github/actions/npm
|
||||||
|
|
||||||
- run: npm run build:esm
|
- run: npm run build:esm
|
||||||
- run: npm run test:node
|
|
||||||
env:
|
- uses: Wandalen/wretry.action@master
|
||||||
|
with:
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue