-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (39 loc) · 1.03 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
name: ci
on:
push:
branches:
- main
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: fmt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install rustfmt from the rust stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Rustfmt
run: cargo fmt --all -- --check
build_and_test:
name: testing
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: cargo build
run: cargo build --verbose --all
- name: cargo test
run: cargo test --verbose --all
- name: cargo clean release builds
run: cargo clean -p ikura-node --release && \
cargo clean -p ikura-shim --release && \
cargo clean -p sov-demo-rollup --release --manifest-path demo/sovereign/Cargo.toml
- name: cargo xtask test
run: cargo xtask test
- name: print logs
run: cat test_log/*.log
if: failure()