Blade Formatterのフォーマット除外ディレクトリをLaravelのドキュメントに正確にあわせる #138
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
name: Tests | |
on: | |
push: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
name: "node:${{ matrix.node }} php:${{ matrix.php }} ${{ matrix.os }}" | |
strategy: | |
fail-fast: true | |
matrix: | |
node: [18, 20, 22] | |
php: [8.2, 8.3, 8.4] | |
os: | |
- "ubuntu-22.04" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite | |
coverage: none | |
- name: Install Composer dependencies | |
run: composer install --prefer-dist --no-interaction --no-progress | |
- name: Copy environment file | |
run: cp .env.example .env | |
- name: Generate app key | |
run: php artisan key:generate | |
- name: Execute tests | |
run: ./artisan test -p --no-progress | |
## | |
- run: composer dump-autoload --strict-psr | |
- run: ./artisan ide-helper:generate | |
- run: vendor/bin/phpstan analyze --no-progress --ansi | |
- run: DB_CONNECTION=sqlite ./artisan migrate --force | |
- run: DB_CONNECTION=sqlite ./artisan model:prune | |
- run: ./artisan config:cache | |
- run: ./artisan route:cache | |
- run: ./artisan schedule:list | |
- run: ./artisan event:cache | |
- run: ./artisan view:cache | |
- name: setup Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: npm install --ignore-script --prefer-offline | |
- run: npm run build |