Skip to content

Commit

Permalink
V0.2.1 (#24)
Browse files Browse the repository at this point in the history
## What's Changed
* Refactor tests by @Yag000 in
#20
* Improve ci by @Yag000 in #21
* Update cargo by @Yag000 in
#22
* chore: lint the project by @Yag000 in
#23


**Full Changelog**:
v0.2.0...v0.2.1
  • Loading branch information
Yag000 authored Aug 29, 2023
2 parents e4a4346 + f1f442b commit 275321d
Show file tree
Hide file tree
Showing 24 changed files with 2,151 additions and 2,049 deletions.
49 changes: 42 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Rust

on:
push:
branches: ["master"]
Expand All @@ -9,14 +8,50 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Install the Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Rust Cache Action
uses: Swatinem/rust-cache@v2

- name: Run tests
run: cargo test

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --all --verbose --release
- name: Run tests
run: cargo test --all --verbose --release
- name: Lint
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Enforce formatting
run: cargo fmt --check

lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Linting
run: ./run_linter.sh

coverage:
name: Code coverage
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Generate code coverage
run: cargo install cargo-tarpaulin && cargo tarpaulin --verbose --workspace
Loading

0 comments on commit 275321d

Please sign in to comment.