Skip to content

Commit a7b76d7

Browse files
committed
Update skeleton
1 parent fadfafd commit a7b76d7

File tree

4 files changed

+36
-2
lines changed

4 files changed

+36
-2
lines changed

.github/workflows/php.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# GitHub Action for CodeIgniter3 Skeleton
2+
name: Testing CodeIgniter3 Skeleton
3+
on: [ push, pull_request ]
4+
jobs:
5+
build:
6+
strategy:
7+
matrix:
8+
operating-system: [ 'ubuntu-latest', 'macos-latest' ]
9+
php-versions: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
10+
runs-on: ${{ matrix.operating-system }}
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
- name: Setup PHP, with composer and extensions
15+
uses: shivammathur/setup-php@v2 # From https://github.com/shivammathur/setup-php
16+
with:
17+
php-version: ${{ matrix.php-versions }}
18+
extensions: mbstring, intl, curl, json, openssl, iconv, mcrypt, sodium, bcmath, xml
19+
- name: Get composer cache directory
20+
id: composer-cache
21+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
22+
- name: Cache dependencies
23+
uses: actions/cache@v3
24+
with:
25+
path: ${{ steps.composer-cache.outputs.dir }}
26+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
27+
restore-keys: ${{ runner.os }}-composer-
28+
- name: Install dependencies
29+
run: composer install --no-dev --no-progress --prefer-dist --optimize-autoloader

app/controllers/Welcome.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,9 @@ public function api(): void
6868
->_display();
6969
exit;
7070
}
71+
72+
public function command(): void
73+
{
74+
ResponseOutput::writeLn("Test CodeIgniter 3 Framework at Time " . date('Y-m-d H:i:s'));
75+
}
7176
}

app/core/MY_Loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
*/
1010
class MY_Loader extends HungNG_Loader
1111
{
12-
}
12+
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"ext-curl": "*",
1818
"ext-json": "*",
1919
"ext-mbstring": "*",
20-
"nguyenanhung/codeigniter-framework": "^3.1.13",
20+
"nguyenanhung/codeigniter-framework": "^3.1.14",
2121
"nguyenanhung/my-debug": "^3.0",
2222
"nguyenanhung/requests": "^3.0",
2323
"nguyenanhung/basic-firewall": "^2.0",

0 commit comments

Comments
 (0)