-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (42 loc) · 1.22 KB
/
ci.yaml
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
name: Rust Client
on:
push:
branches:
- main
- develop
pull_request:
jobs:
Test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.72.0
override: true
- name: Generate test cases
run: cargo run --package polywrap_tests_utils --bin generate
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Test & Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path cov.info --ignore-filename-regex tests-utils --release
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
files: cov.info
Examples:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.72.0
override: true
- name: Instantiate IPFS node
run: npx polywrap infra up --modules=eth-ens-ipfs
- name: Run examples
run: .github/scripts/examples.sh