feat: cargo genreate

This commit is contained in:
DavidOnTop 2024-01-28 11:55:06 +01:00
parent fc16497ceb
commit ce7e64f4dd
No known key found for this signature in database
GPG key ID: FAB914DDC2F180EB
8 changed files with 112 additions and 551 deletions

View file

@ -14,6 +14,7 @@ env:
CARGO_TERM_COLOR: always
jobs:
{% if ci-tests %}
test:
name: Tests
runs-on: ubuntu-latest
@ -24,8 +25,9 @@ jobs:
uses: dtolnay/rust-toolchain@nightly
- name: Run cargo test
run: cargo test
{% endif %}
{% if ci-clippy %}
clippy_check:
name: Clippy
runs-on: ubuntu-latest
@ -39,7 +41,9 @@ jobs:
components: clippy
- name: Run clippy
run: cargo clippy -- -D warnings
{% endif %}
{% if ci-fmt %}
format:
name: Format
runs-on: ubuntu-latest
@ -53,3 +57,4 @@ jobs:
components: rustfmt
- name: Run cargo fmt
run: cargo fmt --all -- --check
{% endif %}