Skip to content

Commit f4ba799

Browse files
authored
Merge pull request #40 from iMattPro/update-master
Merge 3.3.x into master
2 parents 1a53baa + b1d5dd5 commit f4ba799

File tree

4 files changed

+192
-174
lines changed

4 files changed

+192
-174
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -293,19 +293,11 @@ jobs:
293293
DB: ${{steps.database-type.outputs.db}}
294294
COVERAGE: ${{ matrix.COVERAGE == '1' && '1' || '0' }}
295295
run: |
296-
if [ $COVERAGE == '1' ]
297-
then
298-
phpBB/vendor/bin/phpunit \
299-
--configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml \
300-
--bootstrap ./tests/bootstrap.php \
301-
--coverage-clover build/logs/clover.xml \
302-
$([[ "$FUNCTIONAL_TESTS" == "0" ]] && echo "--exclude-group functional")
303-
else
304-
phpBB/vendor/bin/phpunit \
305-
--configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml \
306-
--bootstrap ./tests/bootstrap.php \
307-
$([[ "$FUNCTIONAL_TESTS" == "0" ]] && echo "--exclude-group functional")
308-
fi
296+
phpBB/vendor/bin/phpunit \
297+
--configuration phpBB/ext/$EXTNAME/.github/phpunit-$DB-github.xml \
298+
--bootstrap ./tests/bootstrap.php \
299+
$([[ "$COVERAGE" == "1" ]] && echo "--coverage-clover build/logs/clover.xml") \
300+
$([[ "$FUNCTIONAL_TESTS" == "0" ]] && echo "--exclude-group functional")
309301
working-directory: ./phpBB3
310302

311303
- name: Send code coverage
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Trigger Acme Demo Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- 3.3.x
7+
8+
jobs:
9+
dispatch:
10+
if: github.repository == 'phpbb-extensions/test-framework' # only run if it's the main (source) repo
11+
name: Trigger tests in acme demo extension
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: convictional/[email protected]
15+
with:
16+
owner: phpbb
17+
repo: phpbb-ext-acme-demo
18+
ref: master
19+
github_user: iMattPro # The name of the github user whose access token is being used to trigger the workflow.
20+
github_token: ${{ secrets.ACME_DEMO_PAT }}
21+
workflow_file_name: tests.yml
22+
wait_workflow: false

0 commit comments

Comments
 (0)