From 21d6286ae0e5b063904a4ac277290181d4cf63ce Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sun, 29 Sep 2024 18:20:09 +0200 Subject: [PATCH 1/2] add ci test on alpine --- .github/workflows/build-test.yml | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index d7aacfb9..0a59a38f 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -94,3 +94,45 @@ jobs: ./configure --with-v8js=/opt/v8/self-built LDFLAGS="-lstdc++" CPPFLAGS="-DV8_COMPRESS_POINTERS -DV8_ENABLE_SANDBOX" make make test + + - name: Archive test results + if: failure() + uses: actions/upload-artifact@v4 + with: + name: phpt-test-results + path: | + php_test_results*.txt + tests/*.out + + alpine: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup latest Alpine Linux + uses: jirutka/setup-alpine@v1 + + - name: Install dependencies + run: | + cat /etc/alpine-release + apk add php83-dev nodejs-dev g++ make + shell: alpine.sh --root {0} + + - name: Build extension + run: | + phpize + ./configure + make + make test + shell: alpine.sh {0} + + - name: Archive test results + if: failure() + uses: actions/upload-artifact@v4 + with: + name: phpt-test-results + path: | + php_test_results*.txt + tests/*.out From eaf4b732480cfd2e43e291cb2022c36f297255ce Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sun, 29 Sep 2024 19:47:13 +0200 Subject: [PATCH 2/2] skip array_access_002 test, broken on V8 11.3.244.8 --- tests/array_access_002.phpt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/array_access_002.phpt b/tests/array_access_002.phpt index 641cb519..43d5b44a 100644 --- a/tests/array_access_002.phpt +++ b/tests/array_access_002.phpt @@ -1,7 +1,13 @@ --TEST-- Test V8::executeString() : Use ArrayAccess with JavaScript native push method --SKIPIF-- - + --INI-- v8js.use_array_access = 1 --FILE--