Skip to content

Commit 2d34bea

Browse files
committed
Update phpBB GH Actions
1 parent 2f338fe commit 2d34bea

2 files changed

Lines changed: 22 additions & 84 deletions

File tree

.github/workflows/tests.yml

Lines changed: 21 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,26 @@
11
name: Tests
22

3-
env:
4-
EXTNAME: lukewcs/extmgrplus # Your extension vendor/package name
5-
SNIFF: 1 # Run code sniffer on your code? 1 or 0
6-
IMAGE_ICC: 1 # Run icc profile sniffer on your images? 1 or 0
7-
EPV: 0 # Run EPV (Extension Pre Validator) on your code? 1 or 0
8-
EXECUTABLE_FILES: 1 # Run check for executable files? 1 or 0
9-
PHPBB_BRANCH: 3.3.x # The phpBB branch to run tests on
10-
113
on:
12-
push:
13-
branches: # Run tests when commits are pushed to these branches in your repo
14-
- master
15-
- develop
16-
pull_request: # Run tests when pull requests are made on these branches in your repo
17-
branches:
18-
- master
19-
- develop
4+
push: # Run tests when commits are pushed to these branches in your repo,
5+
branches: # ... or remove this branches section to run tests on all your branches
6+
- main # Main production branch
7+
- master # Legacy or alternative main branch
8+
- dev/* # Any feature branches under "dev/", e.g., dev/new-feature
9+
10+
pull_request: # Run tests when pull requests are made on these branches in your repo,
11+
branches: # ... or remove this branches section to run tests on all your branches
12+
- main
13+
- master
14+
- dev/*
2015

2116
jobs:
22-
# START Basic Checks Job (EPV, code sniffer, images check, etc.)
23-
basic-checks:
24-
runs-on: ubuntu-20.04
25-
strategy:
26-
matrix:
27-
include:
28-
- php: '7.3'
29-
db: "none"
30-
NOTESTS: 1
31-
32-
name: PHP ${{ matrix.php }} - ${{ matrix.db }}
33-
34-
steps:
35-
- name: Checkout phpBB
36-
uses: actions/checkout@v2
37-
with:
38-
repository: phpbb/phpbb
39-
ref: ${{ env.PHPBB_BRANCH }}
40-
path: phpBB3
41-
42-
- name: Checkout extension
43-
uses: actions/checkout@v2
44-
with:
45-
path: phpBB3/phpBB/ext/${{ env.EXTNAME }}
46-
47-
- name: Setup PHP
48-
uses: shivammathur/setup-php@v2
49-
with:
50-
php-version: ${{ matrix.php }}
51-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysqli, sqlite, pdo_sqlite, intl, gd, exif, iconv, sqlsrv, pdo_sqlsrv, ldap
52-
coverage: none
53-
54-
- name: Setup environment for phpBB
55-
env:
56-
DB: ${{ matrix.db }}
57-
PHP_VERSION: ${{ matrix.php }}
58-
NOTESTS: '1'
59-
run: .github/setup-phpbb.sh $DB $PHP_VERSION $NOTESTS
60-
working-directory: ./phpBB3
61-
62-
- name: Setup EPV
63-
if: ${{ env.EPV != 0 }}
64-
run: composer require phpbb/epv:dev-master --dev --no-interaction --ignore-platform-reqs
65-
working-directory: ./phpBB3/phpBB
66-
67-
- name: Run code sniffer
68-
if: ${{ env.SNIFF != 0 }}
69-
env:
70-
NOTESTS: '1'
71-
run: .github/ext-sniff.sh $EXTNAME $NOTESTS
72-
working-directory: ./phpBB3
73-
74-
- name: Check image ICC profiles
75-
if: ${{ env.IMAGE_ICC != 0 }}
76-
run: .github/check-image-icc-profiles.sh
77-
working-directory: ./phpBB3
78-
79-
- name: Check executable files
80-
if: ${{ env.EXECUTABLE_FILES != 0 }}
81-
run: .github/ext-check-executable-files.sh ./ $EXTNAME
82-
working-directory: ./phpBB3
83-
84-
- name: Run EPV
85-
if: ${{ env.EPV != 0 }}
86-
run: phpBB/vendor/bin/EPV.php run --dir="phpBB/ext/$EXTNAME/"
87-
working-directory: ./phpBB3
88-
# END Basic Checks Job
17+
call-tests:
18+
name: Extension tests
19+
uses: phpbb-extensions/test-framework/.github/workflows/tests.yml@3.3.x
20+
with:
21+
EXTNAME: lukewcs/extmgrplus # Your extension vendor/package name (required)
22+
RUN_MYSQL_JOBS: 0
23+
RUN_PGSQL_JOBS: 0
24+
RUN_MSSQL_JOBS: 0
25+
RUN_WINDOWS_JOBS: 0
26+
PRIMARY_PHP_VERSION: '8.4'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Extension Manager Plus
22
Extension for phpBB - Adds the option to disable and re-enable all installed extensions at once to the extension management. Individual selections can be made using checkboxes. In addition, sequence groups and dependencies can be defined or extensions can be ignored. The version check is carried out in blocks and provides detailed information. Additional information is displayed in the extension management.
33

4-
[![Build Status](https://github.com/LukeWCS/ext-mgr-plus/workflows/Tests/badge.svg)](https://github.com/LukeWCS/ext-mgr-plus/actions)
4+
[![Tests](https://github.com/LukeWCS/ext-mgr-plus/actions/workflows/tests.yml/badge.svg)](https://github.com/LukeWCS/ext-mgr-plus/actions/workflows/tests.yml)
55

66
### Requirements
77
* phpBB 3.3.8 - 3.3.x

0 commit comments

Comments
 (0)