-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (47 loc) · 1.46 KB
/
test.yml
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
name: Test
on: workflow_dispatch
concurrency:
group: test
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
image:
- alpine
- android-armv7
- android-arm64
- almalinux-devtoolset11
- linux-armv6
- linux-armv7
- linux-armv7l-musl
- linux-arm64
- linux-arm64-lts
- linux-arm64-musl
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: docker/build-push-action@v5
with:
context: ${{ matrix.image }}
tags: |
prebuild/${{ matrix.image }}:dev
push: false
- name: Print versions
run: |
docker run --rm prebuild/${{ matrix.image }}:dev node -v
docker run --rm prebuild/${{ matrix.image }}:dev npm -v
docker run --rm prebuild/${{ matrix.image }}:dev npx -v
docker run --rm prebuild/${{ matrix.image }}:dev python --version
docker run --rm prebuild/${{ matrix.image }}:dev npm ls node-gyp -g
- name: Print env
run: docker run --rm prebuild/${{ matrix.image }}:dev env
# TODO: fix WORKDIR and permissions (#10)
# - name: Test node-gyp
# run: docker run --rm -v $(pwd)/test/native-addon:/home/node/app:z -w /home/node/app prebuild/${{ matrix.image }}:dev npm run install