-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (33 loc) · 978 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 'CI'
git config --global user.email '[email protected]'
git add api.json
git commit -m "API spec update"
git push