Skip to content

Commit 21d6286

Browse files
committed
add ci test on alpine
1 parent bf319f7 commit 21d6286

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/build-test.yml

+42
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,45 @@ jobs:
9494
./configure --with-v8js=/opt/v8/self-built LDFLAGS="-lstdc++" CPPFLAGS="-DV8_COMPRESS_POINTERS -DV8_ENABLE_SANDBOX"
9595
make
9696
make test
97+
98+
- name: Archive test results
99+
if: failure()
100+
uses: actions/upload-artifact@v4
101+
with:
102+
name: phpt-test-results
103+
path: |
104+
php_test_results*.txt
105+
tests/*.out
106+
107+
alpine:
108+
runs-on: ubuntu-latest
109+
110+
steps:
111+
- name: Checkout code
112+
uses: actions/checkout@v2
113+
114+
- name: Setup latest Alpine Linux
115+
uses: jirutka/setup-alpine@v1
116+
117+
- name: Install dependencies
118+
run: |
119+
cat /etc/alpine-release
120+
apk add php83-dev nodejs-dev g++ make
121+
shell: alpine.sh --root {0}
122+
123+
- name: Build extension
124+
run: |
125+
phpize
126+
./configure
127+
make
128+
make test
129+
shell: alpine.sh {0}
130+
131+
- name: Archive test results
132+
if: failure()
133+
uses: actions/upload-artifact@v4
134+
with:
135+
name: phpt-test-results
136+
path: |
137+
php_test_results*.txt
138+
tests/*.out

0 commit comments

Comments
 (0)