-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 #4200 from codeigniter4/develop
4.0.5 Ready code
- Loading branch information
Showing
731 changed files
with
39,615 additions
and
27,674 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
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 |
---|---|---|
@@ -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" |
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 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 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 |
---|---|---|
@@ -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 }} |
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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# 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/**' | ||
- composer.json | ||
- phpstan.neon.dist | ||
push: | ||
branches: | ||
- 'develop' | ||
- '4.*' | ||
paths: | ||
- 'app/**' | ||
- 'system/**' | ||
- composer.json | ||
- phpstan.neon.dist | ||
|
||
jobs: | ||
build: | ||
name: PHP ${{ matrix.php-versions }} Static Analysis | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-versions: ['7.4', '8.0'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
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 update --ansi --no-interaction | ||
|
||
- name: Run static analysis | ||
run: vendor/bin/phpstan analyse |
Oops, something went wrong.