Skip to content

Commit a97ccfe

Browse files
authored
Merge pull request #55 from klimslim/action_build
Build shadow using gh action
2 parents e353be0 + 52be742 commit a97ccfe

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Shadow Extension Build & Test
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Build and test PHP extension
17+
run: |
18+
docker build -t php-shadow-extension . --progress=plain
19+
20+
- name: Archive test results
21+
if: always()
22+
uses: actions/upload-artifact@v4
23+
with:
24+
name: test-results
25+
path: |
26+
/var/task/shadow/*.out
27+
/var/task/shadow/*.diff
28+
retention-days: 7

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,3 @@ RUN cd shadow && \
3939
echo "extension=${PHP_EXT_DIR}/shadow.so" > ${PHP_CONF_DIR}/shadow.ini
4040
RUN cd shadow && \
4141
php run-tests.php --show-diff .
42-
43-
ENTRYPOINT ["tail", "-f", "/dev/null"]

0 commit comments

Comments
 (0)