v1.0.0 #18
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: Maatify Bootstrap Tests | |
| on: | |
| push: | |
| branches: [ "main", "master" ] | |
| pull_request: | |
| branches: [ "main", "master" ] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: [ "8.4" ] # ✅ Only 8.4 supported officially | |
| steps: | |
| - name: 🛎️ Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: ⚙️ Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: none | |
| extensions: mbstring, intl, bcmath, redis | |
| tools: composer:v2 | |
| - name: ♻️ Cache Composer packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.composer/cache | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: ${{ runner.os }}-composer- | |
| - name: 📦 Install dependencies | |
| run: composer install --no-interaction --no-progress --prefer-dist | |
| - name: 🧪 Run PHPUnit tests | |
| env: | |
| CI: true | |
| run: composer run-script test | |
| - name: 📄 Validate README & composer.json | |
| run: | | |
| test -f README.md | |
| composer validate --no-check-all | |
| - name: 🐳 Docker Build Check | |
| run: docker build -t maatify/bootstrap:test -f docker/Dockerfile . |