-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 971 Bytes
/
validate.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
on:
pull_request:
push:
branches:
- master
jobs:
generate:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Checkout client to subdirectory
uses: actions/checkout@v3
with:
repository: 'mittwald/api-client-php'
path: '.work'
token: ${{ secrets.MACHINE_USER_TOKEN }}
fetch-tags: true
- name: Generate client
run: php ./cmd/generate.php generate https://api.mittwald.de/openapi ./.work -v
- run: git status
working-directory: .work
- name: Validate generated code
working-directory: .work
run: |
set -ex
composer install --prefer-dist --no-progress --no-suggest
vendor/bin/psalm