-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dark❶
committed
Mar 1, 2020
1 parent
ce9ce3e
commit a6ddab8
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Actions CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
check: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Actions Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Actions Setup - Copy to Temp Location | ||
run: | | ||
mkdir --parents ../tmp | ||
cp -R . ../tmp | ||
- name: Actions Setup - Clone phpBB | ||
env: | ||
PHPBB_BRANCH: 3.3.x # phpBB Branch | ||
run: | | ||
git clone --depth=1 git://github.com/phpbb/phpbb.git phpBB3 --branch=$PHPBB_BRANCH | ||
- name: Actions Setup - Composer Install/Remove/Require | ||
run: | | ||
cd phpBB3/phpBB | ||
composer install --no-interaction --no-progress --no-suggest --ignore-platform-reqs | ||
composer remove sami/sami --no-interaction --no-progress --ignore-platform-reqs --dev | ||
composer require phpbb/epv:dev-master --no-interaction --no-progress --no-suggest --ignore-platform-reqs --dev | ||
cd ../../ | ||
- name: Actions Setup - Copy from Temp Location | ||
env: | ||
EXTNAME: dark1/reducesearchindex # CHANGE name of the extension HERE | ||
run: | | ||
mkdir --parents phpBB3/phpBB/ext/$EXTNAME/$EXTNAME | ||
cp -R ../tmp/* phpBB3/phpBB/ext/$EXTNAME/$EXTNAME | ||
- name: Actions Test - Code Sniffer | ||
env: | ||
EXTNAME: dark1/reducesearchindex # CHANGE name of the extension HERE | ||
SNIFF: 1 # Should we run code sniffer on your code? | ||
run: | | ||
cd phpBB3 | ||
sh -c "if [ '$SNIFF' != '0' ]; then phpBB/vendor/bin/phpcs -s --extensions=php --standard=build/code_sniffer/ruleset-php-extensions.xml "--ignore=*/$EXTNAME/tests/*" "--ignore=*/$EXTNAME/vendor/*" "phpBB/ext/$EXTNAME"; fi" | ||
cd ../ | ||
- name: Actions Test - EPV (Extension Pre Validator) | ||
env: | ||
EXTNAME: dark1/reducesearchindex # CHANGE name of the extension HERE | ||
EPV: 1 # Should we run EPV (Extension Pre Validator) on your code? | ||
run: | | ||
cd phpBB3 | ||
sh -c "if [ '$EPV' != '0' ]; then phpBB/vendor/bin/EPV.php run --dir='phpBB/ext/$EXTNAME' --debug; fi" | ||
cd ../ |