Skip to content

Commit

Permalink
Merge pull request #55 from klimslim/action_build
Browse files Browse the repository at this point in the history
Build shadow using gh action
  • Loading branch information
klimslim authored Oct 24, 2024
2 parents e353be0 + 52be742 commit a97ccfe
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Shadow Extension Build & Test

on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Build and test PHP extension
run: |
docker build -t php-shadow-extension . --progress=plain
- name: Archive test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
/var/task/shadow/*.out
/var/task/shadow/*.diff
retention-days: 7
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@ RUN cd shadow && \
echo "extension=${PHP_EXT_DIR}/shadow.so" > ${PHP_CONF_DIR}/shadow.ini
RUN cd shadow && \
php run-tests.php --show-diff .

ENTRYPOINT ["tail", "-f", "/dev/null"]

0 comments on commit a97ccfe

Please sign in to comment.