Implement session based authentication with Sanctum #24
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
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| env: | |
| PHP_EXTENSIONS: mbstring, mysqli, pdo_mysql | |
| PHP_VERSION: 8.3 | |
| APP_ENV: testing | |
| jobs: | |
| static-code-analysis: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| coverage: none | |
| extensions: ${{ env.PHP_EXTENSIONS }} | |
| php-version: ${{ env.PHP_VERSION }} | |
| - uses: ramsey/composer-install@v3 | |
| - run: vendor/bin/phpstan | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| coverage: none | |
| extensions: ${{ env.PHP_EXTENSIONS }} | |
| php-version: ${{ env.PHP_VERSION }} | |
| - uses: ramsey/composer-install@v3 | |
| - run: touch database/database.sqlite | |
| - run: php artisan migrate | |
| - run: vendor/bin/phpunit |