Skip to content

4.2.0 Ready code #6069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1,606 commits into from
Jun 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1606 commits
Select commit Hold shift + click to select a range
d7c8f04
test: add empty lines or so
kenjis May 9, 2022
cca471a
feat: getFieldData() returns nullable data on PostgreSQL
kenjis May 9, 2022
da6313d
refactor: use arrow function
kenjis May 9, 2022
b434be4
fix: arrow function
kenjis May 9, 2022
e6b7d18
fix: $usage
kenjis May 9, 2022
b823b59
docs: add Commnads section in changelog
kenjis May 9, 2022
e26a3b8
chore: fix for deployed user guide
kenjis May 9, 2022
b6605e9
chore: add action to add edit this page links
kenjis May 9, 2022
ca8acb7
docs: make method names linkable
kenjis May 10, 2022
976cec8
feat: improve Exception message
kenjis May 10, 2022
557ba27
style: break long line
kenjis May 10, 2022
9953840
docs: make method names linkable
kenjis May 10, 2022
114eae0
docs: align comment indentation
kenjis May 10, 2022
0c8437f
docs: decorate sample code with '``'
kenjis May 10, 2022
f1767b3
docs: make method names linkable
kenjis May 10, 2022
67a3fad
Merge pull request #5983 from kenjis/fix-docs-debugging.rst
kenjis May 10, 2022
1e08e69
Merge pull request #5985 from kenjis/fix-docs-cli_request.rst
kenjis May 10, 2022
14dea5c
Merge pull request #5986 from kenjis/fix-docs-database/results.rst
kenjis May 10, 2022
3868acb
Merge pull request #5984 from kenjis/feat-Router-exception-message
kenjis May 10, 2022
f798da4
change dies() to php's function name die()
sba May 10, 2022
5ccb503
Merge pull request #5987 from sba/patch-2
kenjis May 10, 2022
8b2df8c
docs: update deprecated $cookiePrefix
kenjis May 10, 2022
0c442fa
docs: add that deleted_at column must be nullable
kenjis May 10, 2022
7b17b44
docs: fix section titles
kenjis May 10, 2022
00ef10b
docs: make method name linkable
kenjis May 10, 2022
ed2447e
docs: fix tricky sample code
kenjis May 10, 2022
5b2cc5e
docs: make method names linkable
kenjis May 11, 2022
3ad9f67
docs: fix section titles
kenjis May 11, 2022
9b092ff
docs: make method names linkable
kenjis May 11, 2022
82be78b
docs: fix text decoration
kenjis May 11, 2022
ef6dee9
docs: fix section title level
kenjis May 11, 2022
a127fb8
docs: add method titles
kenjis May 11, 2022
f47f3f6
docs: make method names linkable
kenjis May 11, 2022
b196d4a
docs: fix text decoration
kenjis May 11, 2022
f199ccb
Merge pull request #5989 from kenjis/fix-docs-soft-deletes
kenjis May 11, 2022
614a717
Merge pull request #5993 from kenjis/fix-docs-testing/response.rst
kenjis May 11, 2022
90d7307
Merge pull request #5982 from kenjis/deploy-userguide-latest-edit-thi…
kenjis May 11, 2022
50a6d26
Merge pull request #5990 from kenjis/fix-docs-database/utilities.rst
kenjis May 12, 2022
5485c88
Merge pull request #5991 from kenjis/fix-docs-testing/controllers.rst
kenjis May 12, 2022
05db70b
Merge pull request #5992 from kenjis/fix-docs-database/queries.rst
kenjis May 12, 2022
1f566fb
Merge pull request #5988 from kenjis/fix-docs-cookiePrefix
kenjis May 12, 2022
61d9b3f
docs: fix by proofreading
kenjis May 12, 2022
44687c7
docs: fix by proofreading
kenjis May 12, 2022
8fc874b
docs: improve the description
kenjis May 12, 2022
021eb53
docs: add missing "s"
kenjis May 12, 2022
fef2018
add dbmgmt/db_commands.rst
kenjis May 12, 2022
845f932
feat: add usage
kenjis May 12, 2022
1a7b9c8
docs: add link to the details
kenjis May 12, 2022
dd89dc2
test: add test for --limit-lows
kenjis May 12, 2022
1e5b6d9
fix: --desc handling
kenjis May 12, 2022
8eb2df1
docs: remove db:table in database/examples.rst, add explanation in db…
kenjis May 12, 2022
8c2a592
docs: rename cli.rst to cli_controllers.rst
kenjis May 12, 2022
e442bc1
docs: rework "Command Line Usage"
kenjis May 12, 2022
50d48b4
docs: make method names linkable
kenjis May 12, 2022
7f2c708
docs: fix title level
kenjis May 12, 2022
17ba8ff
Merge pull request #5995 from kenjis/fix-docs-cli
kenjis May 14, 2022
f7cebe2
Merge pull request #5996 from kenjis/fix-docs-files.rst
kenjis May 14, 2022
c93b967
Merge pull request #5979 from kenjis/feat-db-table-command
kenjis May 16, 2022
924b6b5
Changing the subquery builder for Oracle
iRedds May 17, 2022
d211159
docs fix
iRedds May 17, 2022
f26943c
refactor: move CodeIgniter instantiation from system/bootstrap.php
kenjis May 7, 2022
1adabfe
refactor: remove realpath()
kenjis May 7, 2022
b6a27dc
chore: tweak the files so that their contents are as same as possible.
kenjis May 7, 2022
e2e94e8
refactor: move DotEnv::load() from system/bootstrap.php
kenjis May 7, 2022
1f6761b
refactor: move SAPI check up
kenjis May 7, 2022
7880727
refactor: move error reporting config up
kenjis May 7, 2022
a2a9b6c
refactor: remove variables
kenjis May 7, 2022
b2ed452
refactor: move chdir() up
kenjis May 7, 2022
6545d0d
docs: add user guide
kenjis May 7, 2022
caea4b6
docs: fix by proofreading
kenjis May 10, 2022
d3baa55
docs: add why or so
kenjis May 17, 2022
35e178d
refactor: deprecate EVENT_PRIORITY_* and add class constants
kenjis May 17, 2022
98b3ad2
docs: update user guide
kenjis May 17, 2022
945df7b
docs: add how to link
kenjis May 17, 2022
4d2c97b
docs: fix section level
kenjis May 17, 2022
52b48c3
docs: make method names linkable
kenjis May 17, 2022
7c30113
Merge pull request #6001 from kenjis/update-contributing/documentatio…
kenjis May 17, 2022
8ddc566
Merge pull request #5972 from kenjis/refactor-bootstrap
kenjis May 17, 2022
8e71cd6
Fix: Route placeholder {locale}
iRedds May 18, 2022
0153f4f
Merge pull request #6000 from kenjis/deprecate-const-EVENT_PRIORITY
kenjis May 18, 2022
abdeaa5
Router class optimization.
iRedds May 18, 2022
be2423d
fix: replace EVENT_PRIORITY_NORMAL with Events::PRIORITY_NORMAL
kenjis May 18, 2022
490e9bc
Merge pull request #6005 from kenjis/remove-EVENT_PRIORITY_NORMAL
kenjis May 18, 2022
caf0376
Merge pull request #6002 from kenjis/fix-docs-database/helpers.rst
kenjis May 18, 2022
c59628b
The changelog is missing info about the change.
iRedds May 18, 2022
8a8c183
Merge pull request #6003 from iRedds/fix/detect-locale-placeholder
samsonasik May 19, 2022
218b6bb
The setMatchedRoute method now returns nothing.
iRedds May 19, 2022
2724e4b
Added return type
iRedds May 19, 2022
9b474c7
Merge pull request #6004 from iRedds/router
samsonasik May 19, 2022
c3fd096
Merge pull request #6006 from iRedds/fix/changelog-build-subquery
samsonasik May 19, 2022
fa61596
test: refactor for easier reading
kenjis Apr 30, 2022
3d987fd
fix: unexpected behavior
kenjis Apr 30, 2022
be1610b
docs: add user guide
kenjis May 4, 2022
6000d30
feat: join() supports RawSql
kenjis Apr 7, 2022
c656564
docs: add section for database in Enhancements
kenjis May 4, 2022
fe33275
docs: add the user guide
kenjis May 4, 2022
6c97f9d
docs: move method signature changes in one place
kenjis May 4, 2022
ae40b35
docs: add changelogs and upgrade_420
kenjis May 4, 2022
70c05ba
test: change Config\Images::$libraryPath only when the file exists
kenjis May 20, 2022
ab2b186
Merge pull request #5940 from kenjis/fix-dot_array_search
kenjis May 20, 2022
044ccbb
Merge pull request #6011 from kenjis/fix-ImageMagickHandlerTest
samsonasik May 20, 2022
a034bcb
Merge pull request #5999 from iRedds/fix/oracle-table-alias
MGatner May 21, 2022
aac88a0
fix: CURLRequest request body is not reset on the next request
kenjis May 20, 2022
3433e28
test: fix typo
kenjis May 22, 2022
56962f8
docs: add link to the method
kenjis May 23, 2022
ee41951
docs: decorate variable names and values
kenjis May 23, 2022
16c21cc
docs: remove extraneous explanations
kenjis May 23, 2022
9defe6d
docs: add a note for confusing behavior
kenjis May 23, 2022
298643d
docs: remove **Notes**
kenjis May 23, 2022
e4d0714
chore: add sample for preloading
kenjis May 8, 2022
9f6b338
docs: add changelog
kenjis May 23, 2022
db0f631
chore(deps-dev): update rector/rector requirement from 0.12.23 to 0.13.0
dependabot[bot] May 23, 2022
841f032
Merge pull request #6018 from codeigniter4/dependabot/composer/rector…
samsonasik May 23, 2022
c8faa10
[PHPStan] Pin PHPStan to v1.6.9
samsonasik May 23, 2022
403a4c8
Merge pull request #6019 from samsonasik/pin-phpstan-169
samsonasik May 23, 2022
a8a8fd7
fix: change BaseService::reset() $initAutoloader to true by default
kenjis May 23, 2022
663ab03
docs: add note
kenjis May 24, 2022
ca74b82
Merge pull request #6016 from kenjis/fix-docs-cookies
kenjis May 24, 2022
daff2d7
Merge pull request #5875 from kenjis/feat-qb-raw-sql-join
kenjis May 24, 2022
bcd4a73
docs: move method signature changes in one place
kenjis May 4, 2022
bedf9e6
feat: DBForge::addField() default supports RawSql
kenjis May 4, 2022
a1997b6
docs: make method names linkable
kenjis May 6, 2022
e40a40e
docs: make title's first letter uppercase
kenjis May 6, 2022
ba78034
docs: add about Raw Sql Strings as Default Values
kenjis May 6, 2022
84b1635
[PHPStan] Update to PHPStan ^1.7.1
samsonasik May 24, 2022
a20aa88
Merge pull request #6022 from samsonasik/update-phpstan-171
samsonasik May 24, 2022
e3a00ee
Prefer is_file
MGatner May 24, 2022
ec7311b
Merge pull request #6025 from MGatner/is-file
MGatner May 25, 2022
2f450db
Merge pull request #6020 from kenjis/fix-BaseServices-reset
kenjis May 25, 2022
3711b49
Merge pull request #5957 from kenjis/feat-forge-raw-sql
kenjis May 25, 2022
3d2de6d
refactor: use get_filenames() 4th param
kenjis May 25, 2022
143599b
docs: fix title level
kenjis May 25, 2022
0010ce7
docs: add TOC
kenjis May 25, 2022
5efc768
docs: add sub section title
kenjis May 25, 2022
2cebaaf
docs: fix section title
kenjis May 25, 2022
95e5a6a
docs: change directory notation
kenjis May 25, 2022
a3ccae4
rebase
iRedds May 25, 2022
ddccdcb
docs: add note for Session::get()
kenjis May 25, 2022
e90df73
docs: add changelog
kenjis May 25, 2022
98c43f7
docs: add docs
kenjis May 25, 2022
0e6a8dc
Merge pull request #6029 from kenjis/fix-docs-add-changelog
kenjis May 26, 2022
89dd01b
Merge pull request #6028 from kenjis/fix-docs-sessions.rst
kenjis May 26, 2022
ffbf4e6
Merge pull request #6027 from kenjis/fix-docs-concepts
kenjis May 26, 2022
3719119
Merge pull request #6026 from kenjis/refactor-FileLocator
kenjis May 26, 2022
c65a26d
refactor: use get_filenames() 4th param
kenjis May 26, 2022
764b1e0
Merge pull request #6014 from kenjis/fix-CURLRequest-body
kenjis May 26, 2022
dd187f3
[Rector] Apply PHPUnitSetList::REMOVE_MOCKS
samsonasik May 26, 2022
b2f228f
fix line
samsonasik May 26, 2022
f63e6e5
Merge pull request #6031 from kenjis/refactor-get_filenames-4th-param
kenjis May 26, 2022
346c18f
Merge pull request #5974 from kenjis/add-preload
kenjis May 26, 2022
5395498
Merge pull request #6033 from samsonasik/apply-remove-mock
samsonasik May 26, 2022
2732abb
docs: replace "Form validation" with "Validation"
kenjis May 26, 2022
4152f15
docs: fix title underlines
kenjis May 26, 2022
7440f7b
Bug: The SQLSRV driver ignores the port value from the config.
iRedds May 27, 2022
a6d9eef
Condition changed
iRedds May 27, 2022
7b42a12
Merge pull request #6036 from iRedds/fix-sqlsrv-port
kenjis May 27, 2022
e099ad1
chore: update editorconfig
kenjis May 27, 2022
fb63cf0
style: replace tabs with space in Views
kenjis May 27, 2022
75d4ed4
Merge pull request #6034 from kenjis/fix-docs-form-validation
kenjis May 27, 2022
fbde269
test: add empty lines
kenjis May 27, 2022
478a7c3
test: change test method names
kenjis May 27, 2022
5e754d6
test: fix arrange for test
kenjis May 27, 2022
62441b9
docs: remove out of dated comments
kenjis May 27, 2022
7ee850b
docs: remove out of dated note
kenjis May 27, 2022
8fa85dd
test: fix set_radio() tests
kenjis May 27, 2022
6bb449a
fix: set_radio() implementation
kenjis May 27, 2022
e6e901f
Update user_guide_src/source/database/query_builder.rst
iRedds May 27, 2022
fd013cd
Update user_guide_src/source/database/query_builder.rst
iRedds May 27, 2022
fe30fe2
docs: small improvements
kenjis May 27, 2022
c6ace5d
Merge pull request #6015 from iRedds/feature/query-builder-union
kenjis May 28, 2022
dd62421
docs: add upgrade procedure example for v4.2.0
kenjis May 28, 2022
6eb9afb
Merge pull request #6041 from kenjis/fix-docs-tesing-overview
kenjis May 28, 2022
45f8ba8
Merge pull request #6037 from kenjis/fix-set-radio
kenjis May 28, 2022
43beea2
fix: unit test
aletoropov May 28, 2022
58aa05e
Merge pull request #6042 from kenjis/docs-add-upgrade-procedure-v420
kenjis May 29, 2022
0388d54
docs: remove duplicate entries
kenjis May 29, 2022
cf440fa
docs: categorize changelog v4.2.0
kenjis May 29, 2022
c674c96
docs: add link to detailed page
kenjis May 29, 2022
374acd2
docs: categorise Enhancements Database
kenjis May 29, 2022
83c561c
docs: change section order in Enhancements
kenjis May 29, 2022
cb0a0d4
docs: add "Updating Your Branch"
kenjis May 29, 2022
7dd0e96
Merge pull request #6044 from kenjis/fix-docs-changelog-v420
kenjis May 29, 2022
d464fbf
Merge pull request #6039 from kenjis/fix-editorconfig-and-indent-in-v…
kenjis May 29, 2022
863dad5
refactor: if a user update CI on product server, assert() may not work
kenjis May 30, 2022
e09a5fe
Merge pull request #6047 from kenjis/fix-codeigniter-context-check
kenjis May 30, 2022
f1744e1
docs: add sub sections and fix section level
kenjis May 30, 2022
96beafa
docs: remove sentence
kenjis May 30, 2022
c92ae74
docs: improve and update the config table
kenjis May 30, 2022
7501477
docs: update sample code
kenjis May 30, 2022
c605069
Merge pull request #6049 from kenjis/fix-docs-database/configuration.rst
kenjis May 30, 2022
214f2d9
feat: add DB config `foreignKeys` for SQLite3
kenjis May 30, 2022
f970ac2
Small change to improve code reading
valmorflores May 30, 2022
511286b
chore(deps-dev): update rector/rector requirement from 0.13.0 to 0.13.2
dependabot[bot] May 30, 2022
ffe1ad4
clean up config, re-run rector, and set alias to Config\ClassName whe…
samsonasik May 30, 2022
4cf4f0f
Merge pull request #6050 from kenjis/fix-sqlite-foreign_keys
kenjis May 30, 2022
040e94e
update to use Config\Services on Test/bootstrap
samsonasik May 30, 2022
503ee82
add phpstan-bootstrap.php to include the fallback OCI_COMMIT_ON_SUCCE…
samsonasik May 30, 2022
de96bd3
eol
samsonasik May 30, 2022
bb6f3a2
set reportUnmatchedIgnoredErrors: false
samsonasik May 31, 2022
19df3a3
set back report to true
samsonasik May 31, 2022
724828d
Update phpstan-bootstrap.php
samsonasik May 31, 2022
0c66d6b
Merge pull request #6052 from codeigniter4/dependabot/composer/rector…
samsonasik May 31, 2022
d777cee
refactor: remove CodeIgniter\Services
kenjis May 31, 2022
d363f1a
config: enable SQLite3 foreignKeys for testing
kenjis May 31, 2022
f012cc7
Merge pull request #6051 from valmorflores/patch-2
paulbalandan May 31, 2022
da0b95e
refactor: run rector
kenjis May 31, 2022
d869f03
chore: remove error pattern
kenjis May 31, 2022
112c111
docs: fix @var
kenjis May 31, 2022
e1b03d7
chore: remove error pattern
kenjis May 31, 2022
fd19d90
fix: Ignore non-HTML responses in storePreviousURL
tearoom6 May 21, 2022
753f9e6
test: add test for storePreviousURL in case of non-HTML response
tearoom6 May 30, 2022
3ca4226
docs: add user guide about breaking changes of previous_url
tearoom6 May 30, 2022
4d3584e
docs: add links in the user guide
tearoom6 May 31, 2022
a86e392
docs: revert previous_url in the upgrade note
tearoom6 May 31, 2022
d43fc12
test: fix DBDebug value
kenjis May 31, 2022
6d505e7
test: fix assertion
kenjis May 31, 2022
54a3fcc
style: break long line
kenjis May 31, 2022
5ad2ce5
fix: protect column name in SQLite3\Table::copyData()
kenjis May 31, 2022
cae264a
Merge pull request #6012 from tearoom6/fix/previous_url_only_html
MGatner May 31, 2022
e8cbbe4
Fix ThrottleTest failing occasionally
paulbalandan May 31, 2022
7d79edf
Merge pull request #6053 from kenjis/remove-CodeIgniter-Services
samsonasik May 31, 2022
026fe88
chore(deps-dev): update rector/rector requirement from 0.13.2 to 0.13.3
dependabot[bot] May 31, 2022
5acfe78
Merge pull request #6057 from codeigniter4/dependabot/composer/rector…
samsonasik May 31, 2022
c740fbf
Merge pull request #6056 from paulbalandan/throttle-test
samsonasik May 31, 2022
dc3896d
docs: replace `git checkout` with `git switch`
kenjis May 31, 2022
12b4b3f
docs: fix by proofreading
kenjis May 31, 2022
16dfed0
Merge pull request #5981 from kenjis/feat-getFieldData-add-nullable-o…
kenjis Jun 1, 2022
167b26c
Merge pull request #6021 from kenjis/fix-docs-model.rst
kenjis Jun 1, 2022
451ebb0
Merge pull request #6054 from kenjis/enable-sqlite3-foreignKeys
kenjis Jun 1, 2022
0767da4
Add links to official packages.
lonnieezell Jun 1, 2022
5c3f302
docs: add how to link to a function
kenjis Jun 1, 2022
b4542a5
chore: update Sphinx version
kenjis Jun 1, 2022
b05533c
Merge pull request #6055 from kenjis/fix-sqlite3-Table-copyData
kenjis Jun 1, 2022
ad956b4
Merge pull request #6045 from kenjis/fix-contributing/workflow.md
kenjis Jun 1, 2022
42563c2
Finish fix
paulbalandan Jun 1, 2022
eafe4bb
docs: update repositories.rst
kenjis Jun 2, 2022
54fedb0
add missing valid_url_strict language string
colethorsen Jun 2, 2022
22ba864
docs: fix typo
kenjis Jun 2, 2022
1027f8b
Merge pull request #6066 from colethorsen/feature/valid-url-strict-la…
MGatner Jun 2, 2022
fbd632d
Merge pull request #6058 from paulbalandan/slash-item
kenjis Jun 2, 2022
7f795b5
Added additional packages.
lonnieezell Jun 2, 2022
6b215f9
Merge pull request #6065 from kenjis/fix-docs-repositories.rst
kenjis Jun 2, 2022
b3e497d
Apply suggestions from code review
lonnieezell Jun 2, 2022
a5ae35d
chore: update editorconfig
kenjis Jun 3, 2022
e3dcd83
Merge pull request #6060 from codeigniter4/ug-packages
MGatner Jun 3, 2022
4658e59
Merge pull request #6067 from kenjis/fix-editorconfig
MGatner Jun 3, 2022
a1b9b83
Merge pull request #6062 from kenjis/update-sphinx
kenjis Jun 3, 2022
cb39436
Merge pull request #6061 from kenjis/fix-docs-contributing/documentat…
kenjis Jun 3, 2022
785bd4c
Prep for 4.2.0 release
MGatner Jun 3, 2022
b4ed2fc
Merge pull request #6068 from codeigniter4/release-4.2.0
MGatner Jun 3, 2022
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
  •  
  •  
  •  
18 changes: 10 additions & 8 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
; top-most EditorConfig file
; This file is for unifying the coding style for different editors and IDEs.
; More information at http://editorconfig.org

root = true

; Unix-style newlines
[*]
end_of_line = lf

[*.php]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
indent_size = 4
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{yml,yaml}]
indent_size = 2
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,24 @@ contributing/ export-ignore
.editorconfig export-ignore
.nojekyll export-ignore export-ignore
CODE_OF_CONDUCT.md export-ignore
CONTRIBUTING.md export-ignore
PULL_REQUEST_TEMPLATE.md export-ignore
stale.yml export-ignore
Vagrantfile.dist export-ignore

# They don't want our test files
tests/AutoReview/ export-ignore
tests/system/ export-ignore
utils/ export-ignore
depfile.yaml export-ignore
rector.php export-ignore
phpunit.xml.dist export-ignore
phpstan-baseline.neon.dist export-ignore
phpstan.neon.dist export-ignore
phpstan-bootstrap.php export-ignore
.php-cs-fixer.dist.php export-ignore
.php-cs-fixer.no-header.php export-ignore
.php-cs-fixer.user-guide.php export-ignore

# The source user guide, either
user_guide_src/ export-ignore
Expand Down
36 changes: 36 additions & 0 deletions .github/scripts/deploy-userguide
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

## Deploy codeigniter4/userguide

# Setup variables
SOURCE=$1
TARGET=$2
RELEASE=$3
VERSION=`echo "$RELEASE" | cut -c 2-`

echo "Preparing for version $3"
echo "Merging files from $1 to $2"

# Prepare the source
cd $SOURCE
git checkout master
cd user_guide_src
make html
make epub

# Prepare the target
cd $TARGET
git checkout master
rm -rf docs

# Copy files
cp -Rf ${SOURCE}/user_guide_src/build/html ./docs
cp -Rf ${SOURCE}/user_guide_src/build/epub/CodeIgniter.epub ./CodeIgniter${VERSION}.epub

# Ensure underscore prefixed files are published
touch ${TARGET}/docs/.nojekyll

# Commit the changes
git add .
git commit -m "Release ${RELEASE}"
git push
4 changes: 2 additions & 2 deletions .github/workflows/deploy-apidocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
git config --global user.name "${GITHUB_ACTOR}"

- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: source

- name: Checkout target
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: codeigniter4/api
token: ${{ secrets.ACCESS_TOKEN }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy-framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
git config --global user.name "${GITHUB_ACTOR}"

- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: source

- name: Checkout target
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: codeigniter4/framework
token: ${{ secrets.ACCESS_TOKEN }}
Expand All @@ -36,7 +36,7 @@ jobs:
run: ./source/.github/scripts/deploy-framework ${GITHUB_WORKSPACE}/source ${GITHUB_WORKSPACE}/framework ${GITHUB_REF##*/}

- name: Release
uses: actions/github-script@v5
uses: actions/github-script@v6
with:
github-token: ${{secrets.ACCESS_TOKEN}}
script: |
Expand All @@ -63,12 +63,12 @@ jobs:
git config --global user.name "${GITHUB_ACTOR}"

- name: Checkout source
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: source

- name: Checkout target
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: codeigniter4/appstarter
token: ${{ secrets.ACCESS_TOKEN }}
Expand All @@ -81,7 +81,7 @@ jobs:
run: ./source/.github/scripts/deploy-appstarter ${GITHUB_WORKSPACE}/source ${GITHUB_WORKSPACE}/appstarter ${GITHUB_REF##*/}

- name: Release
uses: actions/github-script@v5
uses: actions/github-script@v6
with:
github-token: ${{secrets.ACCESS_TOKEN}}
script: |
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/deploy-userguide-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
coverage: none

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

- name: Add "Edit this page" links
run: |
cd user_guide_src
# Fix permissions
sudo chown -R runner:docker build/html/
php add-edit-this-page build/html/

# Create an artifact of the html output
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: HTML Documentation
path: user_guide_src/build/html/
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/deploy-userguide.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# When a new Release is created, deploy relevant
# files to each of the generated repos.
name: Deploy User Guide

on:
release:
types: [published]

jobs:
framework:
name: Deploy to userguide
if: (github.repository == 'codeigniter4/CodeIgniter4')
runs-on: ubuntu-latest
steps:
- name: Identify
run: |
git config --global user.email "[email protected]"
git config --global user.name "${GITHUB_ACTOR}"

- name: Checkout source
uses: actions/checkout@v3
with:
path: source

- name: Checkout target
uses: actions/checkout@v3
with:
repository: codeigniter4/userguide
token: ${{ secrets.ACCESS_TOKEN }}
path: userguide

- name: Install Sphinx
run: |
sudo apt install python3-sphinx
sudo pip3 install sphinxcontrib-phpdomain
sudo pip3 install sphinx_rtd_theme

- name: Chmod
run: chmod +x ./source/.github/scripts/deploy-userguide

- name: Deploy
run: ./source/.github/scripts/deploy-userguide ${GITHUB_WORKSPACE}/source ${GITHUB_WORKSPACE}/userguide ${GITHUB_REF##*/}

- name: Release
uses: actions/github-script@v6
with:
github-token: ${{secrets.ACCESS_TOKEN}}
script: |
const release = await github.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo
})
github.rest.repos.createRelease({
owner: context.repo.owner,
repo: 'userguide',
tag_name: release.data.tag_name,
name: release.data.name,
body: release.data.body
})
49 changes: 49 additions & 0 deletions .github/workflows/test-autoreview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Automatic Code Review

on:
pull_request:
paths:
- composer.json
- spark
- '**.php'
- .github/workflows/test-autoreview.yml
push:
paths:
- composer.json
- spark
- '**.php'
- .github/workflows/test-autoreview.yml

jobs:
auto-review-tests:
name: Automatic Code Review
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
coverage: none

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

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

- name: Install dependencies
run: composer update --ansi
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}

- name: Run AutoReview Tests
run: vendor/bin/phpunit --color=always --group=auto-review --no-coverage
10 changes: 6 additions & 4 deletions .github/workflows/test-coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ jobs:
fail-fast: false
matrix:
php-version:
- '7.3'
- '7.4'
- '8.0'

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -41,7 +40,7 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
Expand All @@ -53,7 +52,10 @@ jobs:
run: composer update --ansi --no-interaction

- name: Run lint on `app/`, `admin/`, `public/`
run: vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --config=.no-header.php-cs-fixer.dist.php --using-cache=no --diff
run: vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --config=.php-cs-fixer.no-header.php --using-cache=no --diff

- name: Run lint on `system/`, `tests`, `utils/`, and root PHP files
run: vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --using-cache=no --diff

- name: Run lint on `user_guide_src/source/`
run: vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --config=.php-cs-fixer.user-guide.php --using-cache=no --diff
18 changes: 9 additions & 9 deletions .github/workflows/test-deptrac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ on:
pull_request:
branches:
- 'develop'
- '4.*'
- 'v4.*'
paths:
- 'app/**'
- 'system/**'
- 'app/**.php'
- 'system/**.php'
- 'composer.json'
- 'depfile.yaml'
- '.github/workflows/test-deptrac.yml'
push:
branches:
- 'develop'
- '4.*'
- 'v4.*'
paths:
- 'app/**'
- 'system/**'
- 'app/**.php'
- 'system/**.php'
- 'composer.json'
- 'depfile.yaml'
- '.github/workflows/test-deptrac.yml'
Expand All @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -50,7 +50,7 @@ jobs:
run: mkdir -p ${{ steps.composer-cache.outputs.dir }}

- name: Cache composer dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
Expand All @@ -60,7 +60,7 @@ jobs:
run: mkdir -p build/

- name: Cache Deptrac results
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: build
key: ${{ runner.os }}-deptrac-${{ github.sha }}
Expand Down
Loading