Merge pull request #90 from YAAMSOrg/feature/prometheus-metrics #17
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: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| tests: | |
| name: PHPUnit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| extensions: mbstring, pdo_sqlite, sqlite3, bcmath, intl, dom, curl, fileinfo, gd | |
| coverage: none | |
| - name: Copy environment file | |
| run: cp .env.example .env | |
| - name: Install dependencies | |
| uses: ramsey/composer-install@v3 | |
| with: | |
| composer-options: --prefer-dist | |
| - name: Generate application key | |
| run: php artisan key:generate | |
| - name: Run tests | |
| run: php artisan test |