diff --git a/.github/workflows/publish-npm-package.yml b/.github/workflows/publish-npm-package.yml index 5f752b8953fd..25f243074295 100644 --- a/.github/workflows/publish-npm-package.yml +++ b/.github/workflows/publish-npm-package.yml @@ -366,7 +366,7 @@ jobs: - name: Build TypeScript run: yarn build:ts - name: Test bindings - run: docker run --rm -v $(pwd):/swc -w /swc node:${{ matrix.node }}-slim sh -c 'npm install -f -g yarn@1.22.19 && cd ./packages/${{ inputs.package }} && env DISABLE_PLUGIN_E2E_TESTS=true yarn test' + run: docker run --rm -v $(pwd):/swc -w /swc node:${{ matrix.node }}-slim sh -c 'npm install -f -g yarn@1.22.19 && env DISABLE_PLUGIN_E2E_TESTS=true yarn test:${{ inputs.package }}' test-linux-x64-musl-binding: name: Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }} needs: @@ -406,7 +406,7 @@ jobs: - name: Build TypeScript run: yarn build:ts - name: Test bindings - run: docker run --rm -v $(pwd):/swc -w /swc node:${{ matrix.node }}-alpine sh -c 'npm install -f -g yarn@1.22.19 && cd ./packages/${{ inputs.package }} && env DISABLE_PLUGIN_E2E_TESTS=true yarn test' + run: docker run --rm -v $(pwd):/swc -w /swc node:${{ matrix.node }}-alpine sh -c 'npm install -f -g yarn@1.22.19 && env DISABLE_PLUGIN_E2E_TESTS=true yarn test:${{ inputs.package }}' # test-linux-aarch64-musl-binding: # name: Test bindings on aarch64-unknown-linux-musl - node@lts # needs: diff --git a/package.json b/package.json index f25138fafbb7..e07fee5443f6 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,9 @@ "build": "cd ./packages/core && yarn build", "build:dev": "cd ./packages/core && yarn build:dev", "build:ts": "cd ./packages/core && yarn build:ts", - "test": "cd ./packages/core && yarn test" + "test": "cd ./packages/core && yarn test", + "test:core": "cd ./packages/core && yarn test", + "test:html": "cd ./packages/html && yarn test" }, "devDependencies": { "@babel/compat-data": "^7.25.2",