call artisan via exec #44
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| name: "Tests on PHP ${{ matrix.php }}${{ matrix.name_suffix }}" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: [ '8.2', '8.3', '8.4' ] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| coverage: "none" | |
| php-version: "${{ matrix.php }}" | |
| ini-file: development | |
| tools: composer:v2 | |
| - name: Docker compose | |
| run: docker compose up -d | |
| - name: Install dependencies | |
| run: composer install | |
| - name: Run tests | |
| run: vendor/bin/phpunit | |
| static_analysis: | |
| name: Static analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| coverage: "none" | |
| php-version: "8.3" | |
| ini-file: development | |
| - name: Install dependencies | |
| run: composer install --ansi --no-progress | |
| - name: Run phpstan | |
| run: vendor/bin/phpstan analyse --ansi --no-progress | |
| playwright_test: | |
| name: "Playwright TypeScript" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| - name: Install dependencies | |
| working-directory: playwright | |
| run: npm install | |
| - name: Run TypeScript | |
| working-directory: playwright | |
| # build to check for errors | |
| run: npm run build |