Skip to content

Commit 3b4e4d8

Browse files
committed
Check generated files in CI
1 parent 1364945 commit 3b4e4d8

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/actions/templating/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: templating
2+
runs:
3+
using: composite
4+
steps:
5+
- shell: bash
6+
run: |
7+
set -x
8+
git checkout -B master && scripts/dev/makedist >/dev/null
9+
git add . -N && git diff --exit-code

.github/workflows/push.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
- PHP-8.0
1515
- PHP-8.1
1616
- master
17+
- '**.cipush'
1718
pull_request:
1819
branches:
1920
- '**'
@@ -54,6 +55,8 @@ jobs:
5455
uses: ./.github/actions/test-linux
5556
with:
5657
runTestsParameters: -d zend_extension=opcache.so -d opcache.jit_buffer_size=16M
58+
- name: Assert generated files are up to date
59+
uses: ./.github/actions/templating
5760
MACOS_DEBUG_NTS:
5861
runs-on: macos-10.15
5962
steps:
@@ -80,3 +83,5 @@ jobs:
8083
-d zend_extension=opcache.so
8184
-d opcache.protect_memory=1
8285
-d opcache.jit_buffer_size=16M
86+
- name: Assert generated files are up to date
87+
uses: ./.github/actions/templating

0 commit comments

Comments
 (0)