Skip to content

Commit

Permalink
ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyconover committed Oct 9, 2024
1 parent 508a0a8 commit abe5ad6
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: Rust CI

name: "Test Suite"
on:
push:
branches:
- main # Change this to your main branch if it's not 'main'
pull_request:

jobs:
build:
test:
name: cargo test
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test --all-features

- name: Set up Rust
uses: rust-lang/rustup@v1
# Check formatting with rustfmt
formatting:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Ensure rustfmt is installed and setup problem matcher
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable

- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1

0 comments on commit abe5ad6

Please sign in to comment.