Skip to content

Commit

Permalink
working on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
chanced committed Jun 30, 2024
1 parent d8b0f23 commit 8116a96
Showing 1 changed file with 31 additions and 19 deletions.
50 changes: 31 additions & 19 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
name: Rust

name: "Test Suite"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
push:
pull_request:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test --all-features
linting:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
components: clippy
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo clippy --all-features -- -D warnings
# 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:
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1

0 comments on commit 8116a96

Please sign in to comment.