ci: run with go-waku

This commit is contained in:
Franck Royer 2022-05-27 21:18:36 +10:00 committed by fryorcraken.eth
parent a7dc6936bc
commit e1bb2b351c
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 46 additions and 0 deletions

View File

@ -97,6 +97,52 @@ jobs:
name: nwaku-logs
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:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'