-
Notifications
You must be signed in to change notification settings - Fork 20
73 lines (59 loc) · 1.55 KB
/
bolt_cli_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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Bolt CLI CI
on:
push:
branches:
- unstable
- main
paths:
- "bolt-cli/**"
pull_request:
paths:
- "bolt-cli/**"
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
cargo-tests:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
RUST_BACKTRACE: 1
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Cache cargo registry
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Check
run: |
cd bolt-cli
cargo check
- name: Lint Code with Clippy
run: |
cd bolt-cli
cargo clippy --all-targets --all-features -- -D warnings
- name: Install cargo-nextest
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-nextest
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
- name: Run bolt-cli tests
run: |
cd bolt-cli
cargo nextest run --workspace --retries 3