upd attribute comment #9
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
on: push | |
name: CI | |
permissions: | |
contents: write | |
jobs: | |
phpunit: | |
runs-on: ubuntu-latest | |
container: | |
image: kirschbaumdevelopment/laravel-test-runner:8.2 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
ref: ${{ github.ref_name }} | |
- name: Install composer dependencies | |
run: | | |
composer install --no-scripts | |
- name: Prepare Laravel Application | |
run: | | |
cp .env.example .env | |
php artisan key:generate | |
php artisan migrate | |
- name: Run Testsuite | |
run: vendor/bin/phpunit tests/ | |
- name: Generate and commit API specification | |
run: | | |
php artisan scramble:export | |
git config --global --add safe.directory '*' | |
git config --global user.name 'GitHub Actions' | |
git config --global user.email '[email protected]' | |
git add api.json | |
git commit -m "API spec update" | |
git push |