Skip to content

Commit

Permalink
Workflow for Building/Testing/Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-valerio authored Aug 29, 2024
1 parent e2634bf commit a7a2884
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Rust (fmt, test, build)

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
RUST_TEST_THREADS: "1"

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt

- uses: actions/checkout@v4

- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --test cli_instrument_integration_test
### todo: add other integration tests
- name: Run rustfmt
run: cargo fmt -- --check

0 comments on commit a7a2884

Please sign in to comment.