forked from codeigniter4/CodeIgniter4
-
Notifications
You must be signed in to change notification settings - Fork 0
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 codeigniter4#7073 from codeigniter4/develop
4.3.0 Ready code
- Loading branch information
Showing
627 changed files
with
20,893 additions
and
6,755 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,72 @@ | ||
name: Psalm | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
- '4.*' | ||
paths: | ||
- '**.php' | ||
- 'composer.*' | ||
- 'psalm*' | ||
- '.github/workflows/test-psalm.yml' | ||
push: | ||
branches: | ||
- develop | ||
- '4.*' | ||
paths: | ||
- '**.php' | ||
- 'composer.*' | ||
- 'psalm*' | ||
- '.github/workflows/test-psalm.yml' | ||
|
||
jobs: | ||
build: | ||
name: Psalm Analysis | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.1' | ||
tools: phpstan, phpunit | ||
extensions: intl, json, mbstring, xml, oci8 | ||
coverage: none | ||
env: | ||
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Get composer cache directory | ||
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV | ||
|
||
- name: Cache composer dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.COMPOSER_CACHE_FILES_DIR }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Create Psalm cache directory | ||
run: mkdir -p build/psalm | ||
|
||
- name: Cache Psalm results | ||
uses: actions/cache@v3 | ||
with: | ||
path: build/psalm | ||
key: ${{ runner.os }}-psalm-${{ github.sha }} | ||
restore-keys: ${{ runner.os }}-psalm- | ||
|
||
- name: Install dependencies | ||
run: | | ||
if [ -f composer.lock ]; then | ||
composer install --no-progress | ||
else | ||
composer update --no-progress | ||
fi | ||
- name: Run Psalm analysis | ||
run: vendor/bin/psalm |
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
Oops, something went wrong.