mirror of https://github.com/waku-org/js-waku.git
ci: run with go-waku
This commit is contained in:
parent
a7dc6936bc
commit
e1bb2b351c
|
@ -97,6 +97,52 @@ jobs:
|
||||||
name: nwaku-logs
|
name: nwaku-logs
|
||||||
path: log/
|
path: log/
|
||||||
|
|
||||||
|
node_with_go_waku:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
GO_WAKU_VERSION: "0.2.1"
|
||||||
|
WAKU_SERVICE_NODE_DIR: ./go-waku
|
||||||
|
WAKU_SERVICE_NODE_BIN: ./go-waku/waku
|
||||||
|
WAKU_SERVICE_NODE_PARAMS: "--min-relay-peers-to-publish=0" # Can be removed once https://github.com/status-im/nwaku/issues/1004 is done
|
||||||
|
DEBUG: "waku*"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Get go-waku
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
pwd
|
||||||
|
mkdir -p go-waku/
|
||||||
|
cd go-waku
|
||||||
|
wget "https://github.com/status-im/go-waku/releases/download/v${GO_WAKU_VERSION}/gowaku-${GO_WAKU_VERSION}-x86_64.deb"
|
||||||
|
sudo apt install ./gowaku-${GO_WAKU_VERSION}-x86_64.deb
|
||||||
|
cp $(which waku) ./
|
||||||
|
|
||||||
|
- name: Ensure go-waku is ready
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
uname -a
|
||||||
|
cd go-waku
|
||||||
|
./waku --help
|
||||||
|
|
||||||
|
- name: Install NodeJS
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node }}
|
||||||
|
|
||||||
|
- uses: bahmutov/npm-install@v1
|
||||||
|
|
||||||
|
- run: npm run test:node
|
||||||
|
env:
|
||||||
|
DEBUG: "waku:nwaku*,waku:test*"
|
||||||
|
|
||||||
|
- name: Upload logs on failure
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
name: go-waku-logs
|
||||||
|
path: log/
|
||||||
|
|
||||||
release_next:
|
release_next:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
|
|
Loading…
Reference in New Issue