-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.57 KB
/
e2e.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: E2E Test
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: "0 1 * * *"
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- "8.3"
laravel:
- "^10.0"
stability:
- lowest
- stable
package:
- l5-swagger
- laravel-openapi
name: ${{ matrix.package }} / ${{ matrix.stability }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP, with composer
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- name: Install Composer dependencies
run: |
composer update --prefer-${{ matrix.stability }} --no-interaction --no-progress --ansi
working-directory: e2e/${{ matrix.package }}
- name: Run Unit tests
run: vendor/bin/phpunit
working-directory: e2e/${{ matrix.package }}
- name: Test create cache
run: ./artisan openapi-validator:cache --ansi
working-directory: e2e/${{ matrix.package }}
- name: Test clear cache
run: ./artisan openapi-validator:clear --ansi
working-directory: e2e/${{ matrix.package }}
- name: Publish config file
run: ./artisan openapi-validator:publish --ansi
working-directory: e2e/${{ matrix.package }}
- name: Force publish config file
run: ./artisan openapi-validator:publish --force --ansi
working-directory: e2e/${{ matrix.package }}