-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (71 loc) · 2.27 KB
/
rust.yml
File metadata and controls
72 lines (71 loc) · 2.27 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
name: "Test Suite"
on:
pull_request:
merge_group:
push:
branches:
- main
- release/**
- rust-core
workflow_dispatch:
inputs:
run_long_tests:
description: "Run long simulation tests"
required: false
default: "false"
type: choice
options:
- "false"
- "true"
permissions:
contents: read
jobs:
test:
name: cargo test (short)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- run: cargo test --workspace --all-targets
long_tests:
name: cargo test (long simulations)
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.run_long_tests == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- run: cargo test -p evolve_testapp --test simulation_long_tests -- --ignored
e2e-docker:
name: e2e (evd + ev-node docker)
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Pull ev-node image
run: docker pull ghcr.io/evstack/ev-node-grpc:main
- name: Run e2e tests
run: cargo test -p evd --test external_consensus_e2e -- --ignored --nocapture
timeout-minutes: 10
fmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo fmt --all -- --check
clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- run: cargo clippy --workspace --all-targets -- -D warnings