-
Notifications
You must be signed in to change notification settings - Fork 15
99 lines (97 loc) · 3.18 KB
/
checks.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Run Checks
on:
- push
- pull_request
jobs:
smoke-test-url:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: openapi-generators/openapitools-generator-action@v1
with:
generator: rust
config-file: test_data/config.yml
openapi-url: https://raw.githubusercontent.com/openapi-generators/openapi-python-client/main/end_to_end_tests/baseline_openapi_3.0.json
- run: cd rust-client
smoke-test-file:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: openapi-generators/openapitools-generator-action@v1
with:
generator: rust
config-file: test_data/config.yml
openapi-file: test_data/openapi.json
- run: cd rust-client
smoke-test-absolute-file:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: openapi-generators/openapitools-generator-action@v1
with:
generator: rust
config-file: test_data/config.yml
openapi-file: /github/workspace/test_data/openapi.json
- run: cd rust-client
smoke-test-absolute-config:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: openapi-generators/openapitools-generator-action@v1
with:
generator: rust
config-file: /github/workspace/test_data/config.yml
openapi-file: test_data/openapi.json
- run: cd rust-client
smoke-test-template:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: openapi-generators/openapitools-generator-action@v1
with:
generator: rust
config-file: test_data/config.yml
openapi-file: test_data/openapi.json
template-dir: test_data/templates/rust/
- run: cd rust-client
smoke-test-absolute-template:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: openapi-generators/openapitools-generator-action@v1
with:
generator: rust
config-file: test_data/config.yml
openapi-file: test_data/openapi.json
template-dir: /github/workspace/test_data/templates/rust/
- run: cd rust-client
test-openapi-version:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: openapi-generators/openapitools-generator-action@v1
with:
generator: rust
config-file: test_data/config.yml
openapi-file: test_data/openapi.json
generator-tag: v5.0.0
- run: cd rust-client
test-no-config:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: openapi-generators/openapitools-generator-action@v1
with:
generator: rust
openapi-file: test_data/openapi.json
- run: cd rust-client
test-command-args:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: openapi-generators/openapitools-generator-action@v1
with:
generator: rust
openapi-file: test_data/openapi.json
command-args: --model-name-prefix=BLAH
- run: test -f rust-client/src/models/blah_a_model.rs