Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): add bolt_boost ci + run only if there are diffs on its path #267

Merged
merged 2 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/bolt_boost_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Bolt Boost CI

on:
push:
paths:
- "bolt-boost/**"
pull_request:
paths:
- "bolt-boost/**"

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: Cache cargo registry
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- name: Install cargo-nextest
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-nextest

- name: Run bolt-boost tests
run: cd bolt-boost && cargo nextest run --workspace --retries 3
env:
RPC_URL: ${{ secrets.RPC_URL }}
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Bolt-sidecar CI
name: Bolt Sidecar CI

on: [push, pull_request]
on:
push:
paths:
- "bolt-sidecar/**"
pull_request:
paths:
- "bolt-sidecar/**"

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -36,7 +42,7 @@ jobs:
with:
crate: cargo-nextest

- name: Run all tests
- name: Run bolt-sidecar tests
run: cd bolt-sidecar && cargo nextest run --workspace --retries 3
env:
RPC_URL: ${{ secrets.RPC_URL }}