chore: update version to 0.18.0 #894
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, dev] | |
| pull_request: | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| php: [8.4] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Prepare Composer cache directory | |
| run: mkdir -p ~/.composer/cache | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.composer/cache | |
| key: composer-${{ runner.os }}-${{ hashFiles('composer.lock') }} | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: dom, mbstring, zip | |
| tools: composer:v2 | |
| coverage: xdebug | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '26' | |
| - name: Install PHP dependencies | |
| run: composer install --no-interaction --prefer-dist --optimize-autoloader --ansi | |
| - name: Cache Pest type coverage | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor/pestphp/pest-plugin-type-coverage/.temp | |
| key: pest-type-coverage-${{ runner.os }}-${{ hashFiles('composer.lock') }} | |
| - name: Get NPM cache directory | |
| id: npm-cache-dir | |
| run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} | |
| - name: Cache Node dependencies | |
| id: npm-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ steps.npm-cache-dir.outputs.dir }} | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Install Node dependencies | |
| run: npm ci | |
| - name: Lint frontend | |
| run: npm run lint | |
| - name: Check frontend formatting | |
| run: npm run format | |
| - name: Build frontend | |
| run: npm run build | |
| - name: Typecheck frontend | |
| run: npm run typecheck | |
| - name: Prepare Laravel | |
| run: | | |
| cp .env.example .env | |
| php artisan key:generate | |
| - name: Run linters, static analysis, and tests | |
| run: composer ci |