From b86306176e7905c2d989c45cb3e9e9104ddf798a Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 16 Nov 2023 18:04:48 -0300 Subject: [PATCH] fix tests on docker --- .github/workflows/publish-packager-nodejs.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-packager-nodejs.yml b/.github/workflows/publish-packager-nodejs.yml index 56e02c34..57637a7b 100644 --- a/.github/workflows/publish-packager-nodejs.yml +++ b/.github/workflows/publish-packager-nodejs.yml @@ -240,7 +240,8 @@ jobs: run: ls -R . shell: bash - name: Test bindings - run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim yarn test + working-directory: . + run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim sh -c "cd bindings/packager/nodejs && yarn test" test-linux-x64-musl-binding: name: Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }} needs: @@ -278,7 +279,8 @@ jobs: run: ls -R . shell: bash - name: Test bindings - run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-alpine pnpm test + working-directory: . + run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-alpine sh -c "cd bindings/packager/nodejs && yarn test" test-linux-aarch64-gnu-binding: name: Test bindings on aarch64-unknown-linux-gnu - node@${{ matrix.node }} needs: @@ -361,7 +363,8 @@ jobs: options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build" run: | set -e - pnpm test + cd bindings/packager/nodejs + yarn test test-linux-arm-gnueabihf-binding: name: Test bindings on armv7-unknown-linux-gnueabihf - node@${{ matrix.node }} needs: @@ -404,7 +407,8 @@ jobs: options: "--platform linux/arm/v7 -v ${{ github.workspace }}:/build -w /build" run: | set -e - pnpm test + cd bindings/packager/nodejs + yarn test ls -la publish: name: Publish