Skip to content

Commit 6238351

Browse files
committed
Generate Samples for Nightly
1 parent 76a7d28 commit 6238351

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

.github/workflows/php.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,22 @@ jobs:
141141
strategy:
142142
fail-fast: false
143143
matrix:
144-
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
144+
experimental:
145+
- false
146+
php:
147+
- '7.1'
148+
- '7.2'
149+
- '7.3'
150+
- '7.4'
151+
- '8.0'
152+
- '8.1'
153+
- '8.2'
154+
- '8.3'
155+
- '8.4'
156+
157+
include:
158+
- php: 'nightly'
159+
experimental: true
145160
steps:
146161
- name: Setup PHP
147162
uses: shivammathur/setup-php@v2
@@ -152,8 +167,14 @@ jobs:
152167

153168
- uses: actions/checkout@v2
154169

170+
- name: Composer Config nightly
171+
if: matrix.php == 'nightly'
172+
run: composer config platform.php 8.4.99
173+
155174
- name: Composer Install
156175
run: composer install --ansi --prefer-dist --no-interaction --no-progress
157176

158-
- name: Generate samples files
177+
- name: "Generate samples files (Experimental: ${{ matrix.experimental }})"
178+
env:
179+
FAILURE_ACTION: "${{ matrix.experimental == true }}"
159180
run: composer run samples

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@
9797
"php samples/Sample_43_RTLDefault.php",
9898
"php samples/Sample_44_ExtractVariablesFromReaderWord2007.php",
9999
"php samples/Sample_45_Autoloader.php"
100+
"php samples/Sample_46_RubyPhoneticGuide.php"
101+
"php samples/Sample_47_RTLTitles.php"
100102
]
101103
},
102104
"scripts-descriptions": {

samples/Sample_45_Autoloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use PhpOffice\PhpWord\Style\Font;
44

5-
define('USE_AUTOLOADER', true);
5+
//define('USE_AUTOLOADER', true);
66

77
include_once 'Sample_Header.php';
88

File renamed without changes.

0 commit comments

Comments
 (0)