Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
328 commits
Select commit Hold shift + click to select a range
ca87e5e
fix(Router): reset filter info before get defined filters (#3592)
lefuentes Sep 3, 2020
f76cb2b
Refinements to Autoloader
paulbalandan Sep 2, 2020
43dcc11
Fix current_url() helper function to correctly propagate the baseURL …
michalsn Sep 3, 2020
a00f418
Add slash at the end of host
michalsn Sep 3, 2020
f498c50
Make short HTTP protocol version acceptable
michalsn Sep 3, 2020
1fc7c76
Cast to float
michalsn Sep 3, 2020
712a949
Add phpstan to pre-commit
paulbalandan Sep 2, 2020
b3bd451
Cache composer cache directory [ci skip]
paulbalandan Sep 4, 2020
c2426d8
Add XML tags normaliser
paulbalandan Sep 2, 2020
4c3c1db
Add support for deep nested array
paulbalandan Sep 4, 2020
18eb0d3
using EXIT_ERROR constant in CodeIgniter::bootstrapEnvironment()
samsonasik Sep 5, 2020
94d99d4
Fix @param at URI::stripQuery(...$params)
samsonasik Sep 6, 2020
d66c1d3
Remove all code and docs related to the database cache feature
michalsn Sep 5, 2020
f8bb13f
URI class update for better handling of URLs with sub-folders
michalsn Sep 5, 2020
ca54fb3
Parsing path changes
michalsn Sep 5, 2020
6d06b43
Update system/HTTP/URI.php
michalsn Sep 6, 2020
8603cd9
Use view files for generator commands
paulbalandan Sep 2, 2020
9735525
Add config files for Generators
paulbalandan Sep 5, 2020
d355460
Allow generator commands' views to be configurable
paulbalandan Sep 5, 2020
08f417d
Deprecate migrate:create for make:migration
paulbalandan Sep 6, 2020
4f48d5f
Fix URI class for proper subfolders handling
michalsn Sep 7, 2020
a7e66f5
Cast getBatches() result array
michalsn Sep 8, 2020
1ad0a6a
Allow GeneratorCommand's sortImports to be configurable
paulbalandan Sep 7, 2020
3601c0b
Match 'use' at beginning of phrases only
paulbalandan Sep 8, 2020
c5fc3de
Use DocBlocks to document Config classes' properties
paulbalandan Sep 5, 2020
4ebe331
Resolve name clashes
paulbalandan Sep 5, 2020
3671296
Fix wrong view config parent
paulbalandan Sep 5, 2020
59cc444
Use double dashes for long options
paulbalandan Sep 7, 2020
bfe5350
Update getOptionString to allow output using longopts
paulbalandan Sep 8, 2020
8ae9c20
Update docs to use longopts
paulbalandan Sep 8, 2020
3f41b4f
Mock cache during testing
MGatner Sep 9, 2020
ccc984d
[ci skip] Changelog fixes for the user guide
michalsn Sep 9, 2020
967027e
Cast null value to string
michalsn Sep 9, 2020
84833c8
[CI SKIP] Typo
nyufeng Sep 11, 2020
5001b3f
using new self in URI::resolveRelativeURI()
samsonasik Sep 11, 2020
10b4630
Eliminate 'App' in migrate:status if different from APP_NAMESPACE
paulbalandan Sep 13, 2020
5da096c
Remove the autoinc logic as it dont
devorama Sep 14, 2020
c316913
Write migrate status in tabular format
paulbalandan Sep 14, 2020
b523f43
Add post-migration event
MGatner Sep 10, 2020
f475b67
Add tests and docs
MGatner Sep 11, 2020
4a2c000
Provide missing class
MGatner Sep 11, 2020
758dc32
Rework migration event tests
MGatner Sep 14, 2020
1467c09
Reinstate Events after test
MGatner Sep 14, 2020
37f4813
[ci skip] Fix pasted comments
MGatner Sep 15, 2020
1a26156
Unify QA bootstrap files
MGatner Sep 14, 2020
62d22c8
Add framework dir to fallbacks
MGatner Sep 14, 2020
6d39ae8
Fix path
MGatner Sep 16, 2020
b57a072
Add bootstap to Guide
MGatner Sep 16, 2020
f2aee59
Fix some user guide syntax mistakes [ci skip]
michalsn Sep 16, 2020
64cdf05
Fix syntax mistakes
michalsn Sep 16, 2020
9e1a2d6
Make current_url() function respect forceGlobalSecureRequests config …
michalsn Sep 16, 2020
3ea715b
Add method to afterFind event data
MGatner Sep 16, 2020
6822a7e
Implement model find event singletons
MGatner Sep 16, 2020
2634a81
Fix countAllResults() when DBPrefix is defined
michalsn Sep 16, 2020
612546e
Fix Filters' discoverFilters on class redeclaration
paulbalandan Sep 10, 2020
8a1b36c
Implement getTotal item on pager
agungsugiarto Sep 15, 2020
155b8ba
Remove getTotal() on PagerInterface
agungsugiarto Sep 17, 2020
9031afb
If CSRFExpire specifies 0, set 0 as it is
lf-uraku-yuki Sep 18, 2020
76fde58
Change code format to be simpler
lf-uraku-yuki Sep 19, 2020
50d559b
phpstan update: no longer need ignore error on isset($_SESSION)
samsonasik Sep 20, 2020
99b7d2b
Command cache info to show cache in current system
agungsugiarto Sep 20, 2020
c2ab38f
Fix checking for redirect in FeatureResponse
michalsn Sep 19, 2020
43d2ae7
Fix ControllerResponse::isRedirect()
michalsn Sep 19, 2020
6466d0a
Remove "awkward" note from readme
samsonasik Sep 20, 2020
fe756de
Fix self return types
MGatner Sep 20, 2020
ea0e796
Stop ignoring Message error, standardize format
MGatner Sep 20, 2020
4a09d89
Clean up
MGatner Sep 20, 2020
6679974
set correct PHPDoc title
sba Sep 21, 2020
6ee3170
PHPDoc blocks unified
sba Sep 21, 2020
cfd0ae5
Update helpers.rst
InsiteFX Sep 23, 2020
fbc16c0
Updated static_pages.rst [ci skip]
InsiteFX Sep 23, 2020
73801fd
Update view_renderer.rst [ci skip]
InsiteFX Sep 24, 2020
9c1f54f
Update view_paser.rst [ci skip]
InsiteFX Sep 24, 2020
a8781e1
Update view_paser.rst [ci skip]
InsiteFX Sep 24, 2020
e65512d
Update response.rst [ci skip]
InsiteFX Sep 24, 2020
3489398
Update intro/index.rst [ci skip]
paulbalandan Sep 25, 2020
3e767ad
Update view cell doc [ci skip]
paulbalandan Sep 25, 2020
69d5a8b
Normalize url_is test path
MGatner Sep 23, 2020
0dea8a0
Cache command info only for file cache handler
agungsugiarto Sep 21, 2020
15a60aa
Enforce baseURL trailing slash
MGatner Sep 25, 2020
29339a6
Rework and add URL tests for baseURL slashes
MGatner Sep 25, 2020
32313ee
Add uri_string relative, implement for url_is
MGatner Sep 25, 2020
63e8a43
Tweak tests
MGatner Sep 25, 2020
c17e000
Update cache commands
paulbalandan Sep 26, 2020
bfa66b1
CS and Docblock fixes
paulbalandan Sep 21, 2020
a51f969
Add SodiumHandler encrypter
paulbalandan Sep 21, 2020
e79f757
Update encryption docs for Sodium
paulbalandan Sep 21, 2020
3a1aacc
Do not use shared encryption config
paulbalandan Sep 21, 2020
4e53d27
Make explicit the missing key in encrypt
paulbalandan Sep 21, 2020
5172ff6
Conditionally install sodium
paulbalandan Sep 22, 2020
73e2722
Apply changes from code review
paulbalandan Sep 25, 2020
1843206
Fix transparency handling for webp
michalsn Sep 28, 2020
7207b70
Add $supportTransparency class variable
michalsn Sep 28, 2020
0c5da41
[CI SKIP] Update Array/Json casting use in set
nyufeng Sep 27, 2020
cdf62ca
[CI SKIP] update style
nyufeng Sep 27, 2020
3dee600
[CI SKIP] Separator display
nyufeng Sep 27, 2020
ef2f033
[CI SKIP] fix. delete replace update
nyufeng Sep 27, 2020
82f8b2a
Enable registrars during testing
MGatner Sep 28, 2020
554db78
Clean, expand, and correct Registrar docs
MGatner Sep 28, 2020
fde5748
Fix registrar collision
MGatner Sep 28, 2020
abf10f8
apply rector: set local variable name to camel case
samsonasik Sep 25, 2020
a966411
exclude __DIR__ . '/system/Debug/Toolbar/Views/toolbar.tpl.php'
samsonasik Sep 25, 2020
c3bccb1
using rector ^0.8.10
samsonasik Sep 25, 2020
ae555aa
skip _ in first char
samsonasik Sep 25, 2020
71eac17
cs fix
samsonasik Sep 25, 2020
3e4d459
skip _ in first character to not be changed to camelcase
samsonasik Sep 25, 2020
321adc9
sort use statement and indentation in composer.json
samsonasik Sep 25, 2020
8a64aff
revert change to /system/Autoloader/Autoloader.php as code removed in…
samsonasik Sep 25, 2020
5e10829
sort exclude path in rector config
samsonasik Sep 25, 2020
12bb8e0
using rector-prefixed phar with require-dev nette/utils
samsonasik Sep 26, 2020
270fb75
update both parameter and @param docblock
samsonasik Sep 28, 2020
e472b33
apply composer cache
samsonasik Sep 28, 2020
462e099
update rector dependency and class reference
samsonasik Sep 29, 2020
12f76c1
using option skip for skip system/Autoloader/Autoloader.php for Under…
samsonasik Sep 29, 2020
8217f28
add migrify/php-config-printer
samsonasik Sep 29, 2020
181652b
pin rector/rector-prefixed:0.8.10
samsonasik Sep 29, 2020
8a179c9
pin rector/rector-prefixed:0.8.11
samsonasik Sep 29, 2020
ca5f08f
Revert "using option skip for skip system/Autoloader/Autoloader.php f…
samsonasik Sep 29, 2020
5b073a4
Remove erroneous interface reference
MGatner Sep 29, 2020
eed5e3f
Add connection access method
MGatner Sep 30, 2020
baa72fb
[ci skip] Add db() to class reference
MGatner Sep 30, 2020
08cc1bd
Update rector/rector-prefixed requirement from 0.8.11 to 0.8.13
dependabot[bot] Sep 30, 2020
6f3b3b9
Test framework with github actions
michalsn Sep 27, 2020
d67ffab
Fix path
michalsn Sep 27, 2020
f5cef2c
Update config
michalsn Sep 28, 2020
59b83bb
Updates for coveralls
michalsn Sep 28, 2020
fdb79a1
DB config load changes
michalsn Sep 29, 2020
78f71a8
Add badge to readme and change workflow name
michalsn Sep 30, 2020
a72b52d
Rename workflow
michalsn Sep 30, 2020
3f72ead
Move DB config to Registrar
michalsn Sep 30, 2020
1465c5f
Use static calls
michalsn Sep 30, 2020
c51e85d
Add PHP 8.0
michalsn Sep 30, 2020
d961791
Handle experimental flag for PHP 8.0
michalsn Sep 30, 2020
f6cc35e
Update group check
michalsn Sep 30, 2020
2089de3
Add separate job for PHP 8.0
michalsn Sep 30, 2020
3fcbea8
Update for coveralls-finish
michalsn Sep 30, 2020
8f049d7
Exclude PHP 8.0 from tests for now
michalsn Oct 1, 2020
02dd70a
Supply fallback from realpath failures
MGatner Oct 1, 2020
2144d76
update rector ^0.8
samsonasik Oct 2, 2020
8586c9f
New Array Helper Function
savasdersimcelik Sep 26, 2020
df95059
Error Bug Fix
savasdersimcelik Sep 26, 2020
34decbd
Error Bug Fix
savasdersimcelik Sep 26, 2020
638cebc
ci coding standard fixed
savasdersimcelik Sep 26, 2020
88c1ee2
Optimization Code
savasdersimcelik Sep 26, 2020
95c24b2
Code Optimization Fixed
savasdersimcelik Sep 26, 2020
2a638e5
Array Test Helper
savasdersimcelik Sep 28, 2020
ce11101
Refactor test for provider
MGatner Sep 30, 2020
bb33adf
Update UG
MGatner Sep 30, 2020
03a9f39
Switch parameters, loosen key type
MGatner Sep 30, 2020
0ca4088
Remove redundant unpacking
MGatner Oct 2, 2020
5013d00
Fix property
MGatner Oct 2, 2020
6a4c4c0
apply rector: SimplifyUselessVariableRector
samsonasik Oct 2, 2020
67cb71b
[ci skip] remove awkward note at admin/framework/README.md and admin/…
samsonasik Oct 3, 2020
3b79098
apply rector: RemoveAlwaysElseRector
samsonasik Oct 3, 2020
30c1e5c
Fix PHPUnit status badge in readme
samsonasik Oct 3, 2020
9c2aeeb
Removing unused --dev and autoload on PHPUnit workflow
samsonasik Oct 3, 2020
36f13e5
add --update-with-dependencies for composer remove --dev
samsonasik Oct 4, 2020
aa54355
run composer update after composer remove
samsonasik Oct 4, 2020
2444517
Switch to include
MGatner Oct 1, 2020
4b7f5ae
Rename method
MGatner Oct 3, 2020
2451b26
DX: Use upstream php-coveralls in Actions
keradus Oct 5, 2020
1dd7d62
Update .github/workflows/test-phpunit.yml
keradus Oct 5, 2020
7b69f1a
Streamline gitattributes
paulbalandan Oct 7, 2020
13ee9a4
Fix Image::copy() with subfolder
michalsn Oct 7, 2020
4c9f077
Fix _flatten() call in BaseHandler for Image class
michalsn Oct 7, 2020
fbccd57
Add img_data
MGatner Oct 7, 2020
6f64492
Run phpunit on changed PHP files only
paulbalandan Oct 7, 2020
2d94794
Add more files to paths
paulbalandan Oct 7, 2020
0641128
Exclude utils
paulbalandan Oct 9, 2020
1b5c2b9
Update controllers.rst [ci skip] (#3678)
InsiteFX Oct 9, 2020
66247e9
Fix PHPDoc on RouteCollection / group
MisterDuval Oct 7, 2020
11d3aed
Fixed to array|collable
MisterDuval Oct 8, 2020
9d47f6b
Fix incorrect table reference, fixes #3743
MGatner Oct 9, 2020
6e3a854
Run tests also with push for Coveralls
michalsn Oct 9, 2020
23237db
Add paths for push
michalsn Oct 9, 2020
40b1783
Load helpers directly from the initController
mostafakhudair Oct 6, 2020
c85cb44
deprecate `loadHelpers` method
mostafakhudair Oct 7, 2020
5e1eae5
Update v4.0.5.rst
mostafakhudair Oct 7, 2020
b9335e2
Use `helper` directly
paulbalandan Oct 9, 2020
c934c54
Remove erroneous FQCN of BaseController
paulbalandan Oct 9, 2020
f50c0d9
Fix unexpected unindent
paulbalandan Oct 9, 2020
55a4c9a
Make Faker available on Seeder
paulbalandan Oct 8, 2020
7d4f05c
Reset datacache after table modifications
MGatner Oct 10, 2020
7147b53
Add tests for database commands
paulbalandan Oct 9, 2020
ab4dc2c
Adjusted Validation::withRequest so that it recognizes when the reque…
dcaswel Oct 3, 2020
5b428bb
Created the Message::isJson method to be able to determine if an HTTP…
dcaswel Oct 6, 2020
72940da
Changed isJson() to isJSON() to be consistent with other json methods
dcaswel Oct 7, 2020
fe8758d
Rework factory for basename handling
MGatner Oct 2, 2020
e744cb7
Add Factories
MGatner Oct 4, 2020
48d41ba
Switch Models to use core Factory
MGatner Oct 4, 2020
05df8c7
Fix static reference
MGatner Oct 4, 2020
973952a
Allow runtime configuration
MGatner Oct 5, 2020
9796a9d
Switch Config to use Factory
MGatner Oct 5, 2020
0f07593
Switch Config to use Factory
MGatner Oct 5, 2020
40b3c8a
Enforce instanceOf, bugfixes
MGatner Oct 5, 2020
e04de60
Bugfixes
MGatner Oct 5, 2020
b151ed1
Add tests
MGatner Oct 5, 2020
45b6830
Switch class and config names
MGatner Oct 5, 2020
3a3841b
Fix class references, testing resets
MGatner Oct 5, 2020
4cc60b3
Add factories to user guide
MGatner Oct 5, 2020
d430ea1
Bugfix models name
MGatner Oct 5, 2020
2935709
Split filters for special Config handling
MGatner Oct 6, 2020
cab9bef
Fix logic error, add tests to demonstrate
MGatner Oct 6, 2020
36f70f9
Remove reflection fallback
MGatner Oct 6, 2020
79257ec
Skip reflection-dependent tests
MGatner Oct 6, 2020
ae5b005
Implement review suggestions
MGatner Oct 7, 2020
0c25353
Use getStaticProperties
MGatner Oct 9, 2020
37ca3f9
Add deprecation notices ot the changelog
MGatner Oct 9, 2020
39707e3
Declare magic static methods
MGatner Oct 9, 2020
7f0ad93
Reenable reflection test
MGatner Oct 9, 2020
3ad4866
[ci skip] Add deprecations from Factories
MGatner Oct 9, 2020
e07a35c
[ci skip] Add table border
MGatner Oct 9, 2020
65c5488
Correct the namespace
MGatner Oct 9, 2020
20c5401
Correct the namespace
MGatner Oct 9, 2020
1b70655
apply rector: set auto import FQCN
samsonasik Oct 3, 2020
6266226
clean up public/index.php : remove unneeded $pathsPath var
samsonasik Oct 11, 2020
283c2ae
Fix routes options to be recognizable via used HTTP request method
michalsn Oct 10, 2020
6efd5e0
Apply suggestions from code review
michalsn Oct 10, 2020
edf794f
Code cleanup
michalsn Oct 10, 2020
3cbd7ed
Cast getRoutes() parameter and update phpdocs
michalsn Oct 10, 2020
258700d
Don't instantiate Faker on Seeder constructor
paulbalandan Oct 11, 2020
d7a1009
Mention Faker on user guide [ci skip]
paulbalandan Oct 11, 2020
26c9852
Create Database
lighthinkstudio Sep 29, 2020
bb8aa4c
Polish on create db command
paulbalandan Oct 9, 2020
04eab97
Change test db name
paulbalandan Oct 9, 2020
7b4fab7
Fill tests for uncovered lines
paulbalandan Oct 9, 2020
10e3b83
Put actual db create query in try-catch
paulbalandan Oct 9, 2020
3488ddc
Rebased and used Factories::reset('config')
paulbalandan Oct 11, 2020
faaafff
Fix view caching with directory separators
paulbalandan Oct 10, 2020
aba7255
Correct parameter type
MGatner Oct 12, 2020
92cbc3f
Fix bug in parser with similar variable names
michalsn Oct 9, 2020
d4943bd
Enclose CLI::generateDimensions in a try-catch
paulbalandan Oct 13, 2020
d48c6ee
Bug fix: ensure to use autoload = false in class_exists() in low-hang…
samsonasik Oct 15, 2020
3c057c6
use --update-with-dependencies on composer remove command
samsonasik Oct 15, 2020
62c5ee7
remove deprecated --update-with-dependencies in composer remove command
samsonasik Oct 15, 2020
d0396af
one liner composer remove --dev
samsonasik Oct 15, 2020
532e203
Optimize Model
paulbalandan Oct 10, 2020
385321b
Fix orderBy() random for SQLite3
michalsn Oct 13, 2020
c9ba4ac
report coveralls only in specific php version
samsonasik Oct 15, 2020
e8570e5
add DB to COVERALLS_FLAG_NAME
samsonasik Oct 15, 2020
67b8eb8
restore coveralls-finish
samsonasik Oct 15, 2020
fbe3a9e
remove if matrix.php-versions inside coveralls-finish job
samsonasik Oct 15, 2020
9708c13
Cache loaded helpers
MGatner Oct 15, 2020
cf4a3f0
Add test to verify helper cache
MGatner Oct 15, 2020
f774850
Fix typo in phpunit action
michalsn Oct 15, 2020
44bac86
getSize() does not accept parameters like getSizeByUnit()
eSkiSo Oct 15, 2020
076df57
apply Option::ENABLE_CACHE to rector config
samsonasik Oct 16, 2020
b9ed474
run rector when configuration changed
samsonasik Oct 16, 2020
ee0ae92
Update time.rst
MGatner Oct 16, 2020
baad53c
Combined 2 if blocks that were doing the same thing.
dcaswel Oct 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 21 additions & 13 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,27 @@

# git files
.gitattributes export-ignore
# .gitignore
.gitignore export-ignore

# helper config files
.travis.yml export-ignore
phpdoc.dist.xml export-ignore

# Misc other files
readme.rst
# Don't give admin files
.github/ export-ignore
admin/ export-ignore
contributing/ export-ignore
.editorconfig export-ignore
.nojekyll export-ignore export-ignore
CODE_OF_CONDUCT.md export-ignore
DCO.txt export-ignore
PULL_REQUEST_TEMPLATE.md export-ignore
stale.yml export-ignore
Vagrantfile.dist export-ignore

# They don't want all of our tests...
tests/bin/ export-ignore
tests/codeigniter/ export-ignore
tests/travis/ export-ignore
# They don't want our test files
tests/system/ export-ignore
utils/ export-ignore
rector.php export-ignore
phpunit.xml.dist export-ignore
phpstan.neon.dist export-ignore

# User Guide Source Files
user_guide_src
# The source user guide, either
user_guide_src/ export-ignore
phpdoc.dist.xml export-ignore
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: composer
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: API Documentation
# When changes are pushed to the develop branch,
# build the current version of the API documentation
# with phpDocumentor and deploy it to the api branch.
name: Deploy API Documentation

on:
push:
Expand All @@ -10,10 +13,9 @@ on:
jobs:

build:
name: Generate API Docs
name: Deploy to api
if: (github.repository == 'codeigniter4/CodeIgniter4')
runs-on: ubuntu-latest

steps:
- name: Setup credentials
run: |
Expand All @@ -25,7 +27,7 @@ jobs:
with:
path: source

- name: Checkout api
- name: Checkout target
uses: actions/checkout@v2
with:
repository: codeigniter4/api
Expand All @@ -35,13 +37,12 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
extensions: intl, json, mbstring, mysqlnd, xdebug, xml, sqlite3
coverage: xdebug
php-version: '7.4'
extensions: intl

- name: Download GraphViz for phpDocumentor
- name: Install GraphViz for phpDocumentor
run: |
sudo apt-get install -yq graphviz
sudo apt install -yq graphviz

- name: Download phpDocumentor
run: |
Expand All @@ -50,21 +51,21 @@ jobs:
-L https://github.com/phpDocumentor/phpDocumentor/releases/download/v2.9.1/phpDocumentor.phar \
-o admin/phpDocumentor.phar

- name: Prepare API
- name: Prepare
run: |
cd ./api
rm -rf ./api/docs*
mkdir -p ./api/docs
git reset --hard master

- name: Make the new API docs
- name: Build
run: |
cd ./source
chmod +x admin/phpDocumentor.phar
admin/phpDocumentor.phar
cp -R ${GITHUB_WORKSPACE}/source/api/build/* ${GITHUB_WORKSPACE}/api/docs

- name: Deploy API
- name: Deploy
run: |
cd ./api
git add .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Deploy
# When a new Release is created, deploy relevant
# files to each of the generated repos.
name: Deploy Framework

on:
release:
types: [published]

jobs:
framework:
name: Deploy to framework
if: (github.repository == 'codeigniter4/CodeIgniter4')
runs-on: ubuntu-latest

steps:
- name: Identify
run: |
Expand All @@ -33,7 +36,7 @@ jobs:
run: ./source/.github/scripts/deploy-framework ${GITHUB_WORKSPACE}/source ${GITHUB_WORKSPACE}/framework ${GITHUB_REF##*/}

- name: Release
uses: actions/github-script@0.8.0
uses: actions/github-script@v3
with:
github-token: ${{secrets.ACCESS_TOKEN}}
script: |
Expand All @@ -50,8 +53,9 @@ jobs:
})

appstarter:
name: Deploy to appstarter
if: (github.repository == 'codeigniter4/CodeIgniter4')
runs-on: ubuntu-latest

steps:
- name: Identify
run: |
Expand All @@ -77,7 +81,7 @@ jobs:
run: ./source/.github/scripts/deploy-appstarter ${GITHUB_WORKSPACE}/source ${GITHUB_WORKSPACE}/appstarter ${GITHUB_REF##*/}

- name: Release
uses: actions/github-script@0.8.0
uses: actions/github-script@v3
with:
github-token: ${{secrets.ACCESS_TOKEN}}
script: |
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/deploy-userguide-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# When changes are pushed to the develop branch,
# build the current version of the User Guide
# with Sphinx and deploy it to the gh-pages branch.
#
# @todo Consolidate checkouts
name: Deploy User Guide (latest)

on:
push:
branches:
- 'develop'
paths:
- 'user_guide_src/**'

jobs:
build:
name: Deploy to gh-pages
if: (github.repository == 'codeigniter4/CodeIgniter4')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

# Build the latest User Guide
- name: Build with Sphinx
uses: ammaraskar/[email protected]
with:
docs-folder: user_guide_src/

# Create an artifact of the html output
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: HTML Documentation
path: user_guide_src/build/html/

# Commit changes to the gh-pages branch
- name: Commit changes
run: |
git clone https://github.com/codeigniter4/CodeIgniter4.git --branch gh-pages --single-branch gh-pages
cp -r user_guide_src/build/html/* gh-pages/
cd gh-pages
git config --local user.email "[email protected]"
git config --local user.name "${GITHUB_ACTOR}"
git add .
# Ignore failures due to lack of changes
git commit -m "Update User Guide" -a || true

- name: Push changes
uses: ad-m/[email protected]
with:
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.ACCESS_TOKEN }}
52 changes: 0 additions & 52 deletions .github/workflows/docs_nightly.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/static-analysis-check.yml

This file was deleted.

69 changes: 69 additions & 0 deletions .github/workflows/test-phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# When a PR is opened or a push is made, perform
# a static analysis check on the code using PHPStan.
name: PHPStan

on:
pull_request:
branches:
- 'develop'
- '4.*'
paths:
- 'app/**'
- 'system/**'
push:
branches:
- 'develop'
- '4.*'
paths:
- 'app/**'
- 'system/**'

jobs:
build:
name: Analyze code (PHPStan)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: intl

- name: Use latest Composer
run: composer self-update

- name: Validate composer.json
run: composer validate --strict

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Create composer cache directory
run: mkdir -p ${{ steps.composer-cache.outputs.dir }}

- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Create PHPStan result cache directory
run: mkdir -p build/phpstan

- name: Cache PHPStan result cache directory
uses: actions/cache@v2
with:
path: build/phpstan
key: ${{ runner.os }}-phpstan-${{ github.sha }}
restore-keys: ${{ runner.os }}-phpstan-

- name: Install dependencies
run: composer install --ansi --no-progress --no-suggest --no-interaction

- name: Run static analysis
run: vendor/bin/phpstan analyse
Loading