[ci skip] Bugfix admin repos from testing

This commit is contained in:
Matt Gatner 2020-02-23 19:22:16 +00:00
parent 1a2fe3dfdc
commit 1cd3d9b851
No known key found for this signature in database
GPG Key ID: 98F2DFA2FF210CCC
7 changed files with 184 additions and 5 deletions

127
admin/module/.gitignore vendored Normal file
View File

@ -0,0 +1,127 @@
#-------------------------
# Operating Specific Junk Files
#-------------------------
# OS X
.DS_Store
.AppleDouble
.LSOverride
# OS X Thumbnails
._*
# Windows image file caches
Thumbs.db
ehthumbs.db
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msm
*.msp
# Windows shortcuts
*.lnk
# Linux
*~
# KDE directory preferences
.directory
# Linux trash folder which might appear on any partition or disk
.Trash-*
#-------------------------
# Environment Files
#-------------------------
# These should never be under version control,
# as it poses a security risk.
.env
.vagrant
Vagrantfile
#-------------------------
# Temporary Files
#-------------------------
writable/cache/*
!writable/cache/index.html
writable/logs/*
!writable/logs/index.html
writable/session/*
!writable/session/index.html
writable/uploads/*
!writable/uploads/index.html
writable/debugbar/*
php_errors.log
#-------------------------
# User Guide Temp Files
#-------------------------
user_guide_src/build/*
user_guide_src/cilexer/build/*
user_guide_src/cilexer/dist/*
user_guide_src/cilexer/pycilexer.egg-info/*
#-------------------------
# Test Files
#-------------------------
tests/coverage*
# Don't save phpunit under version control.
phpunit
#-------------------------
# Composer
#-------------------------
vendor/
composer.lock
#-------------------------
# IDE / Development Files
#-------------------------
# Modules Testing
_modules/*
# phpenv local config
.php-version
# Jetbrains editors (PHPStorm, etc)
.idea/
*.iml
# Netbeans
nbproject/
build/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml
.nb-gradle/
# Sublime Text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache
*.sublime-workspace
*.sublime-project
.phpintel
/api/
# Visual Studio Code
.vscode/
/results/
/phpunit*.xml
/.phpunit.*.cache

View File

@ -9,7 +9,7 @@
},
"require-dev": {
"mikey179/vfsstream": "1.6.*",
"phpunit/phpunit": "^7.0"
"phpunit/phpunit": "8.5.*"
},
"autoload-dev": {
"psr-4": {

View File

@ -0,0 +1,51 @@
name: PHPUnit
on:
pull_request:
branches:
- develop
jobs:
main:
name: Build and test
strategy:
matrix:
php-versions: ['7.2', '7.3', '7.4']
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
tools: composer, pecl, phpunit
extensions: intl, json, mbstring, mysqlnd, xdebug, xml, sqlite3
coverage: xdebug
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-progress --no-suggest --no-interaction --prefer-dist --optimize-autoloader
# To prevent rate limiting you may need to supply an OAuth token in Settings > Secrets
# env:
# https://getcomposer.org/doc/articles/troubleshooting.md#api-rate-limit-and-oauth-tokens
# COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
- name: Test with phpunit
run: vendor/bin/phpunit --coverage-text

View File

@ -123,4 +123,5 @@ nb-configuration.xml
.vscode/
/results/
/phpunit*.xml
/phpunit*.xml
/.phpunit.*.cache

View File

@ -10,7 +10,7 @@
},
"require-dev": {
"mikey179/vfsstream": "1.6.*",
"phpunit/phpunit": "^7.0"
"phpunit/phpunit": "8.5.*"
},
"autoload-dev": {
"psr-4": {

View File

@ -47,7 +47,7 @@ namespace Tests\Support\Libraries;
* loading external values. Used to read actual local values from
* a config file.
*/
class ConfigReader extends \App\Config\App
class ConfigReader extends \Config\App
{
public function __construct()
{

View File

@ -1,6 +1,6 @@
<?php
class ExampleTest extends \CodeIgniter\Test\CIUnitTestCase
class HealthTest extends \CodeIgniter\Test\CIUnitTestCase
{
public function setUp(): void
{