Repository navigation
87 lines (72 loc) · 2.15 KB
/
Copy pathtest-published.yml
File metadata and controls
87 lines (72 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Test Published Package
on:
workflow_dispatch:
schedule:
- cron: "0 */12 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test-published:
name: Test Published (${{ matrix.name }})
strategy:
fail-fast: false
matrix:
include:
- name: Linux x64 glibc
runner: ubuntu-latest
- name: Linux arm64 glibc
runner: ubuntu-24.04-arm
- name: macOS arm64
runner: macos-latest
- name: macOS x64
runner: macos-15-intel
- name: Windows x64
runner: windows-latest
- name: Windows arm64
runner: windows-11-vs2026-arm
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout Code
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: "22.x"
- name: Debug Environment
run: node -p "process.platform + ' ' + process.arch"
- name: Install Locked Test Tools
run: npm ci --ignore-scripts
- name: Test Published Package
run: npm run test:package
test-published-musl:
name: Test Published (${{ matrix.name }})
strategy:
fail-fast: false
matrix:
include:
- name: Linux x64 musl
runner: ubuntu-24.04
- name: Linux arm64 musl
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
env:
MUSL_CONTAINER: zvec-node-published-musl
steps:
- name: Checkout Code
uses: actions/checkout@v7
- name: Start musllinux Container
run: |
docker run -d --name "$MUSL_CONTAINER" \
-v "$GITHUB_WORKSPACE:/work" \
-w /work \
node:22-alpine sleep infinity
- name: Install Locked Test Tools
run: docker exec "$MUSL_CONTAINER" npm ci --ignore-scripts
- name: Test Published Package
run: docker exec "$MUSL_CONTAINER" npm run test:package
- name: Tear Down musllinux Container
if: always()
run: docker rm -f "$MUSL_CONTAINER" || true