-
Notifications
You must be signed in to change notification settings - Fork 4
ci #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci #13
Changes from 2 commits
fec55c6
b40c896
3f8555c
294cea3
2f90e06
810c633
299e2de
9d66281
8b59a24
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| name: "CI" | ||
|
|
||
| on: | ||
| pull_request: | ||
| merge_group: | ||
| push: | ||
| branches: [main] | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| cargo-build: | ||
| name: Cargo Build | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Fetch Repository | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Install stable toolchain | ||
| uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
|
||
| - name: cargo build | ||
| run: cargo b --workspace --all-targets --all-features | ||
|
|
||
| cargo-fmt: | ||
| name: Cargo fmt | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Fetch Repository | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Install stable toolchain | ||
| uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
| with: | ||
| components: rustfmt | ||
| toolchain: nightly | ||
|
|
||
| - name: Rustfmt Check | ||
| run: cargo fmt --all --check | ||
|
|
||
| cargo-clippy: | ||
| name: Cargo clippy | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Fetch Repository | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Install stable toolchain | ||
| uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
| with: | ||
| components: clippy | ||
|
|
||
| - name: Clippy Check | ||
| run: cargo clippy --workspace --all-targets --all-features -- -D warnings | ||
LeoPatOZ marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| typos-cli: | ||
| name: typos | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Fetch Repository | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Install Typos | ||
| uses: taiki-e/install-action@v2 | ||
| with: | ||
| tool: typos-cli | ||
|
|
||
| - name: run typos | ||
| run: typos | ||
LeoPatOZ marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: tests | ||
|
|
||
| on: | ||
| pull_request: | ||
| merge_group: | ||
| push: | ||
| branches: [main] | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| cargo-next-test: | ||
| name: Cargo test | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Fetch Repository | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Install stable toolchain | ||
| uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
|
|
||
| - name: Install cargo-nextest | ||
| uses: taiki-e/install-action@v2 | ||
LeoPatOZ marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| with: | ||
| tool: cargo-nextest | ||
|
|
||
| - name: Cargo test | ||
| run: cargo nextest run --workspace --all-targets --all-features --no-tests=pass | ||
LeoPatOZ marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
LeoPatOZ marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,9 @@ pub mod callback; | |
| pub mod scanner; | ||
| pub mod types; | ||
|
|
||
| pub use crate::builder::ScannerBuilder; | ||
| pub use crate::callback::EventCallback; | ||
| pub use crate::scanner::Scanner; | ||
| pub use crate::types::{CallbackConfig, EventFilter}; | ||
| pub use crate::{ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I use the
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i have that as well but for some reason i can't get it to format using the rules in the rustfmt.toml file because it requires the nightly version of rustfmt, so my ide only formats based on naive fmt rules instead of the project ones.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. weird |
||
| builder::ScannerBuilder, | ||
| callback::EventCallback, | ||
| scanner::Scanner, | ||
| types::{CallbackConfig, EventFilter}, | ||
| }; | ||
Uh oh!
There was an error while loading. Please reload this page.