chore: move debug log to file, upload it

This commit is contained in:
fryorcraken.eth 2022-11-17 12:53:51 +11:00
parent 12de3a14e7
commit 0cabd9a38e
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 25 additions and 4 deletions

View File

@ -77,11 +77,18 @@ jobs:
node-version: ${{ env.NODE_JS }}
- uses: bahmutov/npm-install@v1
- run: npm run build
- run: npm run test:node
- run: npm run test:node > debug.log
env:
DEBUG: "waku:nwaku*,waku:test*"
- name: Upload logs on failure
- name: Upload debug logs on failure
uses: actions/upload-artifact@v2
if: failure()
with:
name: debug.log
path: debug.log
- name: Upload nwaku logs on failure
uses: actions/upload-artifact@v2
if: failure()
with:
@ -124,10 +131,17 @@ jobs:
- uses: bahmutov/npm-install@v1
- run: npm run build
- run: npm run test:node
- run: npm run test:node > debug.log
env:
DEBUG: "waku:nwaku*,waku:test*"
- name: Upload debug logs on failure
uses: actions/upload-artifact@v2
if: failure()
with:
name: debug.log
path: debug.log
- name: Upload logs on failure
uses: actions/upload-artifact@v2
if: failure()
@ -171,10 +185,17 @@ jobs:
./build/wakunode2 --help
- run: npm run build
- run: npm run test:node
- run: npm run test:node > debug.log
env:
DEBUG: "waku:nwaku*,waku:test*"
- name: Upload debug logs on failure
uses: actions/upload-artifact@v2
if: failure()
with:
name: debug.log
path: debug.log
- name: Upload logs on failure
uses: actions/upload-artifact@v2
if: failure()