-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from agungsugiarto/upgrade-codeigniter
upgrade codeigniter to last version
- Loading branch information
Showing
8 changed files
with
152 additions
and
216 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 |
---|---|---|
@@ -1,39 +1,32 @@ | ||
name: boilerplate build | ||
name: "ci build" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
build: | ||
|
||
name: PHP ${{ matrix.php-versions }} | ||
runs-on: ubuntu-latest | ||
|
||
if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-versions: ['7.3', '7.4'] | ||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: '7.2' | ||
extension-csv: intl, json, mbstring, mysqlnd. xdebug, xml | ||
coverage: xdebug | ||
- name: Shutdown Ubuntu MySQL (SUDO) | ||
run: sudo service mysql stop | ||
- name: Setup MySQL | ||
uses: samin/[email protected] | ||
with: | ||
mysql version: 5.7 | ||
mysql password: test | ||
mysql user: test | ||
mysql database: boilerplate-test | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: "Validate composer.json and composer.lock" | ||
run: "composer validate" | ||
- name: "Install dependencies" | ||
run: "composer install" | ||
- name: "Run test suite" | ||
run: "composer test -- -c phpunit.xml.github-actions.dist" | ||
- name: Setup PHP Action | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
extensions: intl, json, mbstring, xdebug, xml | ||
php-version: "${{ matrix.php-versions }}" | ||
coverage: xdebug | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: "Validate composer.json and composer.lock" | ||
run: "composer validate" | ||
- name: "Install dependencies" | ||
run: "composer install --prefer-source --no-progress --no-suggest" | ||
- name: "Run test suite" | ||
run: "composer test" |
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<?php | ||
|
||
namespace Tests\Controllers; | ||
|
||
use App\Controllers\Home; | ||
use CodeIgniter\Test\ControllerTester; | ||
use Tests\Support\AuthTestCase; | ||
|
||
class ExampleTest extends AuthTestCase | ||
{ | ||
use ControllerTester; | ||
public function testIndexHome() | ||
{ | ||
$result = $this->controller(Home::class) | ||
->execute('index'); | ||
$this->assertTrue($result->isOK()); | ||
} | ||
} | ||
<?php | ||
|
||
namespace Tests\Controllers; | ||
|
||
use App\Controllers\Home; | ||
use CodeIgniter\Test\ControllerTester; | ||
use Tests\Support\AuthTestCase; | ||
|
||
class ExampleTest extends AuthTestCase | ||
{ | ||
use ControllerTester; | ||
|
||
public function testIndexHome() | ||
{ | ||
$result = $this->controller(Home::class) | ||
->execute('index'); | ||
|
||
$this->assertTrue($result->isOK()); | ||
} | ||
} |
Oops, something went wrong.