Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: test agains Fleets #1432

Merged
merged 11 commits into from
Aug 7, 2023
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,23 @@ jobs:
name: nwaku-logs
path: packages/tests/log/

node_optional:
runs-on: ubuntu-latest
env:
WAKUNODE_IMAGE: "statusteam/nim-waku:v0.18.0"
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_JS }}

- uses: ./.github/actions/npm
- run: npm run build:esm
- run: npm run test:optional --workspace=@waku/tests
env:
DEBUG: ""

node_with_go_waku_master:
runs-on: ubuntu-latest
env:
Expand Down
120 changes: 60 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/tests/.mocharc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"extension": ["ts"],
"spec": "tests/*.spec.ts",
"require": ["ts-node/register", "isomorphic-fetch"],
"loader": "ts-node/esm",
"node-option": [
Expand Down
4 changes: 2 additions & 2 deletions packages/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"check:lint": "eslint src tests",
"check:spelling": "cspell \"{README.md,{tests,src}/**/*.ts}\"",
"check:tsc": "tsc -p tsconfig.dev.json",
"test": "run-s test:*",
"test:node": "node ./src/run-tests.js",
"test": "node ./src/run-tests.js \"tests/**/!(*.optional).spec.ts\"",
"test:optional": "node ./src/run-tests.js \"tests/**/@(*.optional).spec.ts\"",
"reset-hard": "git clean -dfx -e .idea && git reset --hard && npm i && npm run build"
},
"engines": {
Expand Down
1 change: 1 addition & 0 deletions packages/tests/src/run-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ async function main() {
"ts-node/register",
"--project",
"./tsconfig.dev.json",
...process.argv.slice(2),
],
{
stdio: "inherit",
Expand Down
Loading
Loading