Use new action for tests #79
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
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| phpUnitTests: | |
| runs-on: ubuntu-latest | |
| name: Unit Tests / PHP ${{ matrix.phpVersion }} / Winter develop | |
| strategy: | |
| max-parallel: 4 | |
| matrix: | |
| phpVersion: ['8.1', '8.2', '8.3', '8.4'] | |
| steps: | |
| - name: Setup Winter | |
| uses: wintercms/setup-winter-action@v1 | |
| with: | |
| php-version: ${{ matrix.phpVersion }} | |
| plugin-author: winter | |
| plugin-name: pages | |
| - name: Run linting | |
| run: ./vendor/bin/parallel-lint plugins/winter/pages | |
| - name: Run unit tests | |
| run: php artisan winter:test -p Winter.Pages |