-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5b11bc
commit d9210fc
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
on: push | ||
name: CI | ||
permissions: | ||
contents: write | ||
jobs: | ||
phpunit: | ||
runs-on: ubuntu-latest | ||
|
@@ -22,3 +24,12 @@ jobs: | |
- name: Run Testsuite | ||
run: vendor/bin/phpunit tests/ | ||
|
||
- name: Generate and commit API specification | ||
run: | | ||
php artisan scramble:export | ||
git config --global user.name 'CI' | ||
git config --global user.email '[email protected]' | ||
git add api.json | ||
git commit -m "API spec update" | ||
git push |