FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
openapi-generator/.github/workflows/samples-rust-client.yaml at master · fetis/openapi-generator · GitHub
fetis
/
openapi-generator
Public
forked from
OpenAPITools/openapi-generator
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
openapi-generator
/
.github
/
workflows
/
samples-rust-client.yaml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
72 lines (66 loc) · 1.99 KB
Breadcrumbs
openapi-generator
/
.github
/
workflows
/
samples-rust-client.yaml
Copy path
File metadata and controls
72 lines (66 loc) · 1.99 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
name
:
Samples Rust Clients
on
:
push
:
paths
:
-
"
samples/client/others/rust/**
"
-
"
samples/client/petstore/rust-server/**
"
pull_request
:
paths
:
-
"
samples/client/others/rust/**
"
-
"
samples/client/petstore/rust/**
"
jobs
:
build
:
name
:
Build Rust
runs-on
:
ubuntu-latest
services
:
petstore-api
:
image
:
swaggerapi/petstore
ports
:
-
80:8080
env
:
SWAGGER_HOST
:
http://petstore.swagger.io
SWAGGER_BASE_PATH
:
/v2
strategy
:
fail-fast
:
false
matrix
:
sample
:
#
these folders contain sub-projects of rust clients, servers
-
samples/client/others/rust/
-
samples/client/petstore/rust/
steps
:
-
uses
:
actions/checkout@v5
-
uses
:
actions-rs/toolchain@v1
with
:
toolchain
:
stable
-
name
:
Rust cache
uses
:
Swatinem/rust-cache@v2
with
:
cache-targets
:
false
#
Don't cache workspace target directories as they don't exist
cache-directories
:
${{ matrix.sample }}/target
workspaces
:
|
${{ matrix.sample }}/output/*
-
name
:
Build
working-directory
:
${{ matrix.sample }}
run
:
cargo build --all-targets --all-features
-
name
:
Tests
working-directory
:
${{ matrix.sample }}
run
:
|
set -e
# Iterate through each example and test various features
for package in $(find . -maxdepth 1 -mindepth 1 -type d)
do
# Not all versions have a client example
if test -f examples/client/main.rs; then
cargo build --example client --features="client"
fi
# Test the CLI works if present
if test -f bin/cli.rs; then
cargo build --bin ${package##*/} --features cli
target/debug/${package##*/} --help
fi
cargo fmt
cargo test
cargo clippy
cargo doc
done
Back
|
FazBrowse Home
|
New Git URL