-
-
Notifications
You must be signed in to change notification settings - Fork 15
Winter v1.3 Support #71
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
Open
jaxwilko
wants to merge
24
commits into
main
Choose a base branch
from
wip/1.3
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
19be060
Added support for php-parser v5
jaxwilko d9a0d6f
Added bump to php-parser in composer.json
jaxwilko 8229df8
Added fix for risky tests
jaxwilko c70490e
Added debug code to test github action
jaxwilko 048d352
Added removed debug
jaxwilko 1b4d6da
Update unit-tests.yaml
LukeTowers f92b546
Update unit-tests.yaml
LukeTowers 77933b2
Update .github/workflows/unit-tests.yaml
LukeTowers 979c9b6
Update unit-tests.yaml
LukeTowers 58c9220
Update unit-tests.yaml
LukeTowers 0e77fdd
Update unit-tests.yaml
LukeTowers cf51955
Update unit-tests.yaml
LukeTowers 300bd5d
Update unit-tests.yaml
LukeTowers ecaf82e
Update unit-tests.yaml
LukeTowers 363d8f6
Update unit-tests.yaml
LukeTowers bdb70f9
Update unit-tests.yaml
LukeTowers c3bc14d
Update phpunit.xml
LukeTowers 7d0d2a3
Update BuilderPluginTestCase.php
LukeTowers 96848fe
Update ModelModelTest.php
LukeTowers 363acf8
Update ModelFileParserTest.php
LukeTowers f8b2298
Update MigrationFileParserTest.php
LukeTowers 8d44928
Update FilesystemGeneratorTest.php
LukeTowers 6f9f7f9
Update unit-tests.yaml
LukeTowers 757b990
v2.2.0
LukeTowers 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 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,79 +1,33 @@ | ||
| name: Unit Tests | ||
| name: Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - 'main' | ||
| - 'wip/1.3' | ||
| pull_request: | ||
|
|
||
| concurrency: | ||
| group: tests-${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| phpUnitTests: | ||
| runs-on: ubuntu-latest | ||
| name: PHP ${{ matrix.phpVersions }} | ||
| runs-on: ${{ matrix.operatingSystem }} | ||
| strategy: | ||
| max-parallel: 4 | ||
| matrix: | ||
| phpVersions: ['8.1', '8.2', '8.3', '8.4'] | ||
| fail-fast: false | ||
| env: | ||
| phpExtensions: mbstring, intl, gd, xml, sqlite | ||
| cacheKey: ext-cache-v2 | ||
| winterCmsRelease: develop | ||
| steps: | ||
| - name: Checkout changes | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| path: builder-plugin | ||
|
|
||
| - name: Setup cache environment | ||
| id: extcache | ||
| uses: shivammathur/cache-extensions@v1 | ||
| - name: Setup Winter | ||
| uses: wintercms/setup-winter-action@v1 | ||
| with: | ||
| php-version: ${{ matrix.phpVersions }} | ||
| extensions: ${{ env.phpExtensions }} | ||
| key: ${{ env.cacheKey }} | ||
|
|
||
| - name: Cache extensions | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ${{ steps.extcache.outputs.dir }} | ||
| key: ${{ steps.extcache.outputs.key }} | ||
| restore-keys: ${{ steps.extcache.outputs.key }} | ||
|
|
||
| - name: Install PHP and extensions | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: ${{ matrix.phpVersions }} | ||
| extensions: ${{ env.phpExtensions }} | ||
| tools: composer:v2 | ||
| coverage: none | ||
|
|
||
| - name: Install Winter CMS | ||
| run: | | ||
| wget https://github.com/wintercms/winter/archive/${{ env.winterCmsRelease }}.zip | ||
| unzip ${{ env.winterCmsRelease }}.zip | ||
| rm ${{ env.winterCmsRelease }}.zip | ||
| shopt -s dotglob | ||
| mv winter-${{ env.winterCmsRelease }}/* ./ | ||
| rmdir winter-${{ env.winterCmsRelease }} | ||
| shopt -u dotglob | ||
| cp config/cms.php config/testing/cms.php | ||
| mkdir -p plugins/winter | ||
| mv builder-plugin plugins/winter/builder | ||
| - name: Get Composer cache directory | ||
| id: composercache | ||
| run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
|
||
| - name: Cache dependencies | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ${{ steps.composercache.outputs.dir }} | ||
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
| restore-keys: ${{ runner.os }}-composer- | ||
|
|
||
| - name: Install Composer dependencies | ||
| run: composer install --no-interaction --no-progress | ||
| winter-ref: wip/1.3 | ||
| plugin-author: winter | ||
| plugin-name: builder | ||
|
|
||
| - name: Run unit tests | ||
| run: php artisan winter:test -p Winter.Builder -- --testdox | ||
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
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.