Skip to content

Commit

Permalink
cleanup bg processing
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilovtim committed Dec 2, 2023
1 parent 52e96c0 commit 566b588
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,17 @@ jobs:
run: npm run lint --ws

- name: Run dwn-server (background)
run: node node_modules/@web5/dwn-server/dist/esm/src/main.js &
run: |
node node_modules/@web5/dwn-server/dist/esm/src/main.js &
echo "DWN_SERVER_BACKGROUND_PROCESS=$!" >> $GITHUB_ENV
- name: Run tests for all packages
run: npm run test:node --ws -- --color
env:
TEST_DWN_URL: http://localhost:3000

- name: Terminate dwn-server
run: kill $(jobs -p)
run: kill $DWN_SERVER_BACKGROUND_PROCESS || true

- name: Upload test coverage to Codecov
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
Expand Down Expand Up @@ -129,13 +131,15 @@ jobs:
run: npm run build

- name: Run dwn-server (background)
run: node node_modules/@web5/dwn-server/dist/esm/src/main.js &
run: |
node node_modules/@web5/dwn-server/dist/esm/src/main.js &
echo "DWN_SERVER_BACKGROUND_PROCESS=$!" >> $GITHUB_ENV
- name: Run tests for all packages
run: npm run test:browser --ws

- name: Terminate dwn-server
run: kill $(jobs -p)
run: kill $DWN_SERVER_BACKGROUND_PROCESS || true

web5-spec:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 566b588

Please sign in to comment.