forked from RWA-ToolKit/stellar-rwa-api-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 699 Bytes
/
Copy pathapi.yml
File metadata and controls
33 lines (31 loc) · 699 Bytes
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
name: API
on:
push:
paths:
- "api/**"
- ".github/workflows/api.yml"
pull_request:
paths:
- "api/**"
jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: api
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: api
- name: Format check
run: cargo fmt --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Test
run: cargo test
- name: Build (release)
run: cargo build --release