-
Notifications
You must be signed in to change notification settings - Fork 73
chore: migrate from circleci to gh actions #394
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
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
1748dbb
chore: migrate from circleci to gh actions
eric-zaharia ecec463
fix: remove deprecated TreeBuilder::root()
eric-zaharia b55d4ac
fix: removed remaining stale ignore pattern
eric-zaharia 14d2d11
fix: removed trailing comma
eric-zaharia e90d175
fix: run static analysis and coding style for all versions
eric-zaharia 85562bd
fix: include version in index prefix
eric-zaharia e608581
chore: remove circleci config
eric-zaharia fb384ff
Update .github/workflows/ci.yml
eric-zaharia bb71710
Update .github/workflows/ci.yml
eric-zaharia 8c6efaa
Update .github/workflows/ci.yml
eric-zaharia 408f678
fix: support php 8.4/8.5 in CI and upgrade dev tooling
eric-zaharia 6c03e80
fix: ignore rootNode type
eric-zaharia eeda271
fix: remove ignore
eric-zaharia 6e07d75
fix: code style issue
eric-zaharia 5a99a8e
fix: limit php version support
eric-zaharia 3174720
fix: force symfony/http-kernel to not jump to a higher version for ne…
eric-zaharia 9fcde52
fix: for PHP 8.4+ Symfony uses native lazy objects
eric-zaharia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,59 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| pull_request: | ||
| branches: [master] | ||
| concurrency: | ||
| group: ci-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| php: ['8.2', '8.3', '8.4', '8.5'] | ||
| symfony: ['^7.0'] | ||
|
|
||
| name: PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup PHP | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: ${{ matrix.php }} | ||
| extensions: zip, sqlite3 | ||
| coverage: none | ||
|
|
||
| - name: Cache Composer dependencies | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: vendor | ||
| key: composer-deps-${{ matrix.php }}-${{ hashFiles('composer.json') }} | ||
eric-zaharia marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| restore-keys: | | ||
| composer-deps-${{ matrix.php }}- | ||
|
|
||
| - name: Install dependencies | ||
| run: COMPOSER_MEMORY_LIMIT=-1 composer require "symfony/framework-bundle=${{ matrix.symfony }}" -n --prefer-dist | ||
|
|
||
| - name: Run static analysis | ||
| run: composer test:install && composer test:types | ||
|
|
||
| - name: Check code styles | ||
| run: composer test:lint | ||
|
|
||
| - name: Run tests | ||
| if: ${{ !github.event.pull_request.head.repo.fork }} | ||
| timeout-minutes: 15 | ||
| env: | ||
| COMPOSER_PROCESS_TIMEOUT: 900 | ||
| ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }} | ||
| ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} | ||
| ALGOLIA_PREFIX: sf_phpunit_${{ matrix.php }}_ | ||
| run: composer test:unit | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| { | ||
| "require-dev": { | ||
| "phpstan/phpstan": "^1.11", | ||
| "localheinz/phpstan-rules": "^2.2", | ||
| "phpstan/phpstan-strict-rules": "^1.6", | ||
| "thecodingmachine/phpstan-strict-rules": "^1.0" | ||
| "phpstan/phpstan": "^2.1", | ||
| "ergebnis/phpstan-rules": "^2.13", | ||
| "phpstan/phpstan-strict-rules": "^2.0" | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.