-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (40 loc) · 1.05 KB
/
sdk.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
name: sdk
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
code-check:
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: check code format and lint
run: |
cargo fmt --manifest-path sdk/Cargo.toml --all -- --check
cargo clippy --manifest-path sdk/Cargo.toml --all-targets --all-features -- --D warnings
test:
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: test
run: |
cargo test --manifest-path sdk/Cargo.toml --all-features
build:
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: build
run: |
cargo build --manifest-path sdk/Cargo.toml --all-features