Skip to content

Commit

Permalink
fix: don't build edr_napi before testing in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
agostbiro committed Feb 19, 2024
1 parent e04b0cb commit 507b5b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/edr-npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- host: windows-latest
build: |
pnpm build --target i686-pc-windows-msvc
pnpm test
pnpm testNoBuild
target: i686-pc-windows-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
run: ls -R .
shell: bash
- name: Test bindings
run: pnpm test
run: pnpm testNoBuild
test-linux-x64-gnu-binding:
name: Test bindings on Linux-x64-gnu - node@${{ matrix.node }}
needs:
Expand Down Expand Up @@ -236,7 +236,7 @@ jobs:
run: ls -R .
shell: bash
- name: Test bindings
run: docker run --rm -v $(pwd):/build -w /build/crates/edr_napi node:${{ matrix.node }} bash -c "wget -qO- 'https://unpkg.com/@pnpm/self-installer' | node; pnpm test"
run: docker run --rm -v $(pwd):/build -w /build/crates/edr_napi node:${{ matrix.node }} bash -c "wget -qO- 'https://unpkg.com/@pnpm/self-installer' | node; pnpm testNoBuild"
test-linux-x64-musl-binding:
name: Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }}
needs:
Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:
run: ls -R .
shell: bash
- name: Test bindings
run: docker run --rm -v $(pwd):/build -w /build/crates/edr_napi node:${{ matrix.node }}-alpine sh -c "wget -qO- 'https://unpkg.com/@pnpm/self-installer' | node; pnpm test"
run: docker run --rm -v $(pwd):/build -w /build/crates/edr_napi node:${{ matrix.node }}-alpine sh -c "wget -qO- 'https://unpkg.com/@pnpm/self-installer' | node; pnpm testNoBuild"
test-linux-aarch64-gnu-binding:
name: Test bindings on aarch64-unknown-linux-gnu - node@${{ matrix.node }}
needs:
Expand Down Expand Up @@ -315,7 +315,7 @@ jobs:
run: |
wget -qO- 'https://unpkg.com/@pnpm/self-installer' | node
set -e
pnpm test
pnpm testNoBuild
ls -la
test-linux-aarch64-musl-binding:
name: Test bindings on aarch64-unknown-linux-musl - node@lts
Expand Down Expand Up @@ -353,7 +353,7 @@ jobs:
run: |
wget -qO- 'https://unpkg.com/@pnpm/self-installer' | node
set -e
pnpm test
pnpm testNoBuild
check_commit:
name: Check commit
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions crates/edr_napi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"version": "napi version",
"pretest": "pnpm build",
"test": "pnpm tsc && mocha --recursive \"test/**/*.ts\" --exit",
"testNoBuild": "pnpm tsc && mocha --recursive \"test/**/*.ts\" --exit",
"clean": "rm -rf @ignored/edr.node"
}
}

0 comments on commit 507b5b2

Please sign in to comment.