Skip to content

Commit cdfd4c8

Browse files
authored
fix(ci): Restore disabled CI checks (#9002)
1 parent 97e3ba2 commit cdfd4c8

File tree

1 file changed

+50
-47
lines changed

1 file changed

+50
-47
lines changed

.github/workflows/publish-core.yml

+50-47
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish (core)
22

33
concurrency:
44
group: ${{ github.workflow }}-${{ github.ref }}
5-
cancel-in-progress: ${{ github.event_name != 'push' }}
5+
cancel-in-progress: true
66

77
env:
88
DEBUG: napi:*
@@ -202,6 +202,7 @@ jobs:
202202
options: -v ${{ env.HOME }}/.cargo/git:/root/.cargo/git -v ${{ env.HOME }}/.cargo/registry:/root/.cargo/registry -v ${{ github.workspace }}:/build -w /build
203203
run: >-
204204
cd ./packages/core &&
205+
npm install -f -g [email protected] &&
205206
corepack enable &&
206207
npm i -g wasm-pack &&
207208
${{ matrix.settings.build }}
@@ -232,7 +233,7 @@ jobs:
232233
target: x86_64-apple-darwin
233234
node:
234235
- "18"
235-
# - "20"
236+
- "20"
236237
runs-on: ${{ matrix.settings.host }}
237238
steps:
238239
- uses: actions/checkout@v4
@@ -270,7 +271,7 @@ jobs:
270271
matrix:
271272
node:
272273
- "18"
273-
# - "20"
274+
- "20"
274275
runs-on: ubuntu-latest
275276
steps:
276277
- uses: actions/checkout@v4
@@ -294,7 +295,7 @@ jobs:
294295
- name: Build TypeScript
295296
run: yarn build:ts
296297
- name: Test bindings
297-
run: docker run --rm -v $(pwd):/swc -w /swc node:${{ matrix.node }}-slim env DISABLE_PLUGIN_E2E_TESTS=true yarn test
298+
run: docker run --rm -v $(pwd):/swc -w /swc node:${{ matrix.node }}-slim sh -c 'npm install -f -g [email protected] && env DISABLE_PLUGIN_E2E_TESTS=true yarn test'
298299
test-linux-x64-musl-binding:
299300
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}
300301
name: Test bindings on x86_64-unknown-linux-musl - node@${{ matrix.node }}
@@ -305,7 +306,7 @@ jobs:
305306
matrix:
306307
node:
307308
- "18"
308-
# - "20"
309+
- "20"
309310
runs-on: ubuntu-latest
310311
steps:
311312
- uses: actions/checkout@v4
@@ -332,46 +333,47 @@ jobs:
332333
- name: Build TypeScript
333334
run: yarn build:ts
334335
- name: Test bindings
335-
run: docker run --rm -v $(pwd):/swc -w /swc node:${{ matrix.node }}-alpine env DISABLE_PLUGIN_E2E_TESTS=true yarn test
336-
# test-linux-aarch64-musl-binding:
337-
# if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}
338-
# name: Test bindings on aarch64-unknown-linux-musl - node@lts
339-
# needs:
340-
# - build
341-
# runs-on: ubuntu-latest
342-
# steps:
343-
# - uses: actions/checkout@v4
344-
# - name: Corepack
345-
# run: corepack enable
346-
# - name: Download artifacts
347-
# uses: actions/download-artifact@v3
348-
# with:
349-
# name: bindings-aarch64-unknown-linux-musl
350-
# path: ./packages/core
351-
# - name: List packages
352-
# run: ls -R .
353-
# shell: bash
354-
# - name: Install dependencies
355-
# run: |
356-
# corepack enable
357-
# yarn config set supportedArchitectures.cpu "arm64"
358-
# yarn config set supportedArchitectures.libc "musl"
359-
# yarn install
360-
# - name: Build TypeScript
361-
# run: yarn build:ts
362-
# - name: Set up QEMU
363-
# uses: docker/setup-qemu-action@v2
364-
# with:
365-
# platforms: arm64
366-
# - run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
367-
# - name: Setup and run tests
368-
# uses: addnab/docker-run-action@v3
369-
# with:
370-
# image: node:lts-alpine
371-
# options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build"
372-
# run: >-
373-
# set -e &&
374-
# DISABLE_PLUGIN_E2E_TESTS=true yarn test
336+
run: docker run --rm -v $(pwd):/swc -w /swc node:${{ matrix.node }}-alpine sh -c 'npm install -f -g [email protected] && env DISABLE_PLUGIN_E2E_TESTS=true yarn test'
337+
test-linux-aarch64-musl-binding:
338+
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}
339+
name: Test bindings on aarch64-unknown-linux-musl - node@lts
340+
needs:
341+
- build
342+
runs-on: ubuntu-latest
343+
steps:
344+
- uses: actions/checkout@v4
345+
- name: Corepack
346+
run: corepack enable
347+
- name: Download artifacts
348+
uses: actions/download-artifact@v3
349+
with:
350+
name: bindings-aarch64-unknown-linux-musl
351+
path: ./packages/core
352+
- name: List packages
353+
run: ls -R .
354+
shell: bash
355+
- name: Install dependencies
356+
run: |
357+
corepack enable
358+
yarn config set supportedArchitectures.cpu "arm64"
359+
yarn config set supportedArchitectures.libc "musl"
360+
yarn install
361+
- name: Build TypeScript
362+
run: yarn build:ts
363+
- name: Set up QEMU
364+
uses: docker/setup-qemu-action@v2
365+
with:
366+
platforms: arm64
367+
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
368+
- name: Setup and run tests
369+
uses: addnab/docker-run-action@v3
370+
with:
371+
image: node:lts-alpine
372+
options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build"
373+
run: >-
374+
set -e &&
375+
npm install -f -g [email protected] &&
376+
DISABLE_PLUGIN_E2E_TESTS=true yarn test
375377
376378
test-linux-arm-gnueabihf-binding:
377379
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/ci') }}
@@ -383,7 +385,7 @@ jobs:
383385
matrix:
384386
node:
385387
- "18"
386-
# - "20"
388+
- "20"
387389
runs-on: ubuntu-latest
388390
steps:
389391
- uses: actions/checkout@v4
@@ -416,6 +418,7 @@ jobs:
416418
options: "--platform linux/arm/v7 -v ${{ github.workspace }}:/build -w /build"
417419
run: >-
418420
set -e &&
421+
npm install -f -g [email protected] &&
419422
DISABLE_PLUGIN_E2E_TESTS=true yarn test &&
420423
ls -la
421424
publish:
@@ -426,7 +429,7 @@ jobs:
426429
- test-linux-x64-musl-binding
427430
- test-linux-arm-gnueabihf-binding
428431
- test-macOS-windows-binding
429-
# - test-linux-aarch64-musl-binding
432+
- test-linux-aarch64-musl-binding
430433
steps:
431434
- uses: actions/checkout@v4
432435

0 commit comments

Comments
 (0)