Skip to content

Commit

Permalink
add ci test on alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
stesie committed Sep 29, 2024
1 parent bf319f7 commit 21d6286
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 21d6286

Please sign in to comment.