mirror of https://github.com/status-im/js-waku.git
move back node to workflows
This commit is contained in:
parent
a15b027c37
commit
9baf52af5c
|
@ -1,58 +0,0 @@
|
||||||
name: Run Test
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
nim_wakunode_image:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
test_type:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
debug:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ''
|
|
||||||
|
|
||||||
env:
|
|
||||||
NODE_JS: "18"
|
|
||||||
RETRY_ATTEMPTS: 3
|
|
||||||
WAKU_SERVICE_NODE_PARAMS: ${{ (inputs.test_type == 'go-waku-master') && '--min-relay-peers-to-publish=0' || '' }}
|
|
||||||
DEBUG: ${{ inputs.test_type }}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
node:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
WAKUNODE_IMAGE: ${{ inputs.nim_wakunode_image }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
repository: waku-org/js-waku
|
|
||||||
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: ${{ env.NODE_JS }}
|
|
||||||
|
|
||||||
- uses: ./.github/actions/npm
|
|
||||||
|
|
||||||
- run: npm run build:esm
|
|
||||||
|
|
||||||
- uses: Wandalen/wretry.action@master
|
|
||||||
with:
|
|
||||||
attempt_limit: ${{ env.RETRY_ATTEMPTS }}
|
|
||||||
command: ${{ (inputs.test_type == 'node-optional') && 'npm run test:optional --workspace=@waku/tests' || 'npm run test:node' }}
|
|
||||||
|
|
||||||
- name: Upload debug logs on failure
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
if: failure()
|
|
||||||
with:
|
|
||||||
name: ${{ inputs.test_type }}-debug.log
|
|
||||||
path: debug.log
|
|
||||||
|
|
||||||
- name: Upload logs on failure
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
if: failure()
|
|
||||||
with:
|
|
||||||
name: ${{ inputs.test_type }}-logs
|
|
||||||
path: packages/tests/log/
|
|
|
@ -69,26 +69,26 @@ jobs:
|
||||||
- run: npm run test:browser
|
- run: npm run test:browser
|
||||||
|
|
||||||
node:
|
node:
|
||||||
uses: ./.github/actions/node
|
uses: ./.github/workflows/test-node.yml
|
||||||
with:
|
with:
|
||||||
nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'statusteam/nim-waku:v0.19.0' }}
|
nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'statusteam/nim-waku:v0.19.0' }}
|
||||||
test_type: node
|
test_type: node
|
||||||
|
|
||||||
node_optional:
|
node_optional:
|
||||||
uses: ./.github/actions/node
|
uses: ./.github/workflows/test-node.yml
|
||||||
with:
|
with:
|
||||||
nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'statusteam/nim-waku:v0.19.0' }}
|
nim_wakunode_image: ${{ inputs.nim_wakunode_image || 'statusteam/nim-waku:v0.19.0' }}
|
||||||
test_type: node-optional
|
test_type: node-optional
|
||||||
|
|
||||||
node_with_go_waku_master:
|
node_with_go_waku_master:
|
||||||
uses: ./.github/actions/node
|
uses: ./.github/workflows/test-node.yml
|
||||||
with:
|
with:
|
||||||
nim_wakunode_image: statusteam/go-waku:latest
|
nim_wakunode_image: statusteam/go-waku:latest
|
||||||
test_type: go-waku-master
|
test_type: go-waku-master
|
||||||
debug: waku*
|
debug: waku*
|
||||||
|
|
||||||
node_with_nwaku_master:
|
node_with_nwaku_master:
|
||||||
uses: ./.github/actions/node
|
uses: ./.github/workflows/test-node.yml
|
||||||
with:
|
with:
|
||||||
nim_wakunode_image: statusteam/nim-waku:deploy-wakuv2-test
|
nim_wakunode_image: statusteam/nim-waku:deploy-wakuv2-test
|
||||||
test_type: nwaku-master
|
test_type: nwaku-master
|
||||||
|
|
Loading…
Reference in New Issue