fix: 🐛 panic on startup when init the singleton guard #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
merge_group: | |
pull_request: | |
push: | |
branches: | |
- master | |
env: | |
CARGO_INCREMENTAL: false | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: full | |
RUSTDOCFLAGS: -Dwarnings | |
name: CI | |
jobs: | |
lint: | |
name: rust code lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly-2023-10-15 | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v2 | |
- name: format style check | |
run: cargo fmt --all -- --check | |
- name: cargo clippy check | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
- name: cargo check | |
run: cargo check | |
tests: | |
name: rust tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly-2023-10-15 | |
- uses: Swatinem/rust-cache@v2 | |
- name: cargo test | |
run: cargo test --all --all-features |