Skip to content

Commit

Permalink
feat: add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Oct 24, 2024
1 parent dadfb73 commit eba7052
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/bolt_cli_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Bolt CLI CI

on:
push:
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: Install cargo-nextest
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-nextest

- name: Run bolt-cli tests
run: cd bolt-cli && cargo nextest run --workspace --retries 3

0 comments on commit eba7052

Please sign in to comment.