From 0b2cb256e2204c09cd2b2d0cda6bb1f4381e9de3 Mon Sep 17 00:00:00 2001 From: amr-crabnebula Date: Wed, 13 Dec 2023 06:15:27 +0200 Subject: [PATCH] ci: build packager with `tsc` before test --- .github/workflows/publish-packager-nodejs.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-packager-nodejs.yml b/.github/workflows/publish-packager-nodejs.yml index 5d4a13e5..459b4c6d 100644 --- a/.github/workflows/publish-packager-nodejs.yml +++ b/.github/workflows/publish-packager-nodejs.yml @@ -217,7 +217,7 @@ jobs: shell: bash - name: Test bindings working-directory: . - run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim sh -c "cd bindings/packager/nodejs && PACKAGER_FORMATS=deb yarn test" + run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim sh -c "cd bindings/packager/nodejs && yarn postbuild && PACKAGER_FORMATS=deb yarn test" test-linux-x64-musl-binding: name: Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }} needs: @@ -252,7 +252,7 @@ jobs: shell: bash - name: Test bindings working-directory: . - run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-alpine sh -c "cd bindings/packager/nodejs && PACKAGER_FORMATS=deb yarn test" + run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-alpine sh -c "cd bindings/packager/nodejs && yarn postbuild && PACKAGER_FORMATS=deb yarn test" test-linux-aarch64-gnu-binding: name: Test bindings on aarch64-unknown-linux-gnu - node@${{ matrix.node }} needs: @@ -297,6 +297,7 @@ jobs: export PACKAGER_FORMATS=deb set -e cd bindings/packager/nodejs + yarn postbuild yarn test ls -la test-linux-aarch64-musl-binding: @@ -337,6 +338,7 @@ jobs: export PACKAGER_FORMATS=deb set -e cd bindings/packager/nodejs + yarn postbuild yarn test test-linux-arm-gnueabihf-binding: name: Test bindings on armv7-unknown-linux-gnueabihf - node@${{ matrix.node }} @@ -381,6 +383,7 @@ jobs: export PACKAGER_FORMATS=deb set -e cd bindings/packager/nodejs + yarn postbuild yarn test ls -la publish: