Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
albugowy15 committed May 19, 2024
1 parent 6be2be2 commit ced9331
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 115 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
name: Rust
name: Cargo Build & Test

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

env:
CARGO_TERM_COLOR: always

jobs:
build:

build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest

strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build
- name: Run tests
run: cargo test
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings
- run: cargo build --verbose
- run: cargo test --verbose
Loading

0 comments on commit ced9331

Please sign in to comment.