Skip to content

Commit 05e7d6c

Browse files
committed
Add e2e arch test
1 parent d6fea3c commit 05e7d6c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/versions.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,17 @@ jobs:
9696
node-version: 0.12.18
9797
- name: Verify node
9898
run: __tests__/verify-node.sh 0.12.18 SKIP_NPM
99+
shell: bash
100+
101+
arch:
102+
runs-on: windows-latest
103+
steps:
104+
- uses: actions/checkout@v2
105+
- name: Setup node 12 x86 from dist
106+
uses: ./
107+
with:
108+
node-version: '12'
109+
architecture: 'x86'
110+
- name: Verify node
111+
run: __tests__/verify-arch.sh "ia32"
99112
shell: bash

__tests__/verify-arch.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
if [ -n "$1" ]; then
4+
architecture="$(node -e 'console.log(process.arch)')"
5+
if [ -z "$(echo $architecture | grep --fixed-strings $1)" ]; then
6+
echo "Unexpected architecture"
7+
exit 1
8+
fi
9+
else
10+
echo "Skip testing architecture"
11+
fi

0 commit comments

Comments
 (0)