-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (44 loc) · 1.13 KB
/
ci.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
name: "ci"
on:
pull_request:
paths-ignore:
- "**.md"
- ".github/**"
- "!.github/workflows/ci.yml"
push:
branches:
- "master"
paths-ignore:
- "**.md"
- ".github/**"
- "!.github/workflows/ci.yml"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
env:
RUST_TEST_THREADS: 1
jobs:
marine-rs-sdk:
name: "Run tests"
runs-on: builder
steps:
- uses: actions/checkout@v4
- name: Setup rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo build
env:
CARGO_BUILD_TARGET: wasm32-wasi
run: cargo build
- name: Run cargo check
run: cargo check -v --all-features
- name: Run marine-macro-impl tests
run: cargo test
working-directory: crates/marine-macro-impl
- name: Run cargo test
run: cargo test --release --all-features --no-fail-fast
- name: Run cargo clippy
env:
CARGO_BUILD_TARGET: wasm32-wasi
run: cargo clippy