-
Notifications
You must be signed in to change notification settings - Fork 5
74 lines (57 loc) · 2.04 KB
/
Copy pathci.yml
File metadata and controls
74 lines (57 loc) · 2.04 KB
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
on: [push, pull_request]
name: libp2p-webrtc
jobs:
validation:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [x86_64-unknown-linux-gnu, wasm32-unknown-unknown]
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: setup rustup
run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y
- name: cargo fmt
working-directory: libp2p-webrtc
run: cargo fmt --all -- --check
- name: cargo clippy
working-directory: libp2p-webrtc
run: cargo clippy --target ${{ matrix.toolchain }} --workspace --examples --tests --all-features -- -D warnings
- name: cargo build
working-directory: libp2p-webrtc
run: cargo build --locked --target ${{ matrix.toolchain }}
- name: cargo test
if: ${{ matrix.toolchain != 'wasm32-unknown-unknown' }}
working-directory: libp2p-webrtc
run: RUST_LOG=debug cargo test --all-features --target ${{ matrix.toolchain }}
integration:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: setup rustup
run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y
- name: install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: integration tests
working-directory: integration
run: cargo run
signaling-server:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: setup rustup
run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y
- name: cargo fmt
working-directory: signal
run: cargo fmt --all -- --check
- name: cargo clippy
working-directory: signal
run: cargo clippy --workspace --examples --tests --all-features -- -D warnings
- name: cargo build
working-directory: signal
run: cargo build --locked
- name: cargo test
working-directory: signal
run: RUST_LOG=debug cargo test --all-features