mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 08:11:52 +00:00
Merge pull request #538 from stesie/feature/ci-test-on-alpine
add ci test on alpine
This commit is contained in:
commit
5234490839
42
.github/workflows/build-test.yml
vendored
42
.github/workflows/build-test.yml
vendored
@ -94,3 +94,45 @@ jobs:
|
|||||||
./configure --with-v8js=/opt/v8/self-built LDFLAGS="-lstdc++" CPPFLAGS="-DV8_COMPRESS_POINTERS -DV8_ENABLE_SANDBOX"
|
./configure --with-v8js=/opt/v8/self-built LDFLAGS="-lstdc++" CPPFLAGS="-DV8_COMPRESS_POINTERS -DV8_ENABLE_SANDBOX"
|
||||||
make
|
make
|
||||||
make test
|
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
|
||||||
|
@ -1,7 +1,13 @@
|
|||||||
--TEST--
|
--TEST--
|
||||||
Test V8::executeString() : Use ArrayAccess with JavaScript native push method
|
Test V8::executeString() : Use ArrayAccess with JavaScript native push method
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
<?php require_once(dirname(__FILE__) . '/skipif.inc');
|
||||||
|
|
||||||
|
if (str_starts_with(V8Js::V8_VERSION, '11.3.244.8')) {
|
||||||
|
die("skip V8 version known to call setter twice");
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
--INI--
|
--INI--
|
||||||
v8js.use_array_access = 1
|
v8js.use_array_access = 1
|
||||||
--FILE--
|
--FILE--
|
||||||
|
Loading…
Reference in New Issue
Block a user