Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 3 additions & 32 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install latest Rust toolchain
run: |
rustup toolchain install nightly --profile minimal
rustup component add rustfmt
rustup component add --toolchain nightly rustfmt
- name: Check fmt
run: cargo +nightly fmt

Expand All @@ -43,19 +43,6 @@ jobs:
- name: Check if git index is clean
run: git diff-index --quiet HEAD --

check_wasm32:
name: Check on WASM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install latest Rust toolchain
run: |
rustup update --no-self-update
rustup target add wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- working-directory: crates/olpat-wasm
run: cargo check --target wasm32-unknown-unknown

toml_test:
name: Run toml-test
runs-on: ubuntu-latest
Expand Down Expand Up @@ -84,7 +71,7 @@ jobs:
- name: Install latest Rust toolchain
run: |
rustup update --no-self-update
rustup default 1.74
rustup default 1.88
- uses: Swatinem/rust-cache@v2
- name: Test MSRV for olpat
run: |
Expand All @@ -99,25 +86,9 @@ jobs:
- name: Install latest Rust toolchain
run: |
rustup update --no-self-update
rustup default 1.74
rustup default 1.88
- uses: Swatinem/rust-cache@v2
- name: Test olpat-cli
run: |
cargo check -p olpat-cli
cargo test -p olpat-cli

test-msrv-wasm:
name: Test WASM with MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install latest Rust toolchain
run: |
rustup update --no-self-update
rustup default 1.74
rustup target install wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- name: Test olpat-wasm
working-directory: crates/olpat-wasm
run: |
cargo check
55 changes: 55 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
exclude: target/|test-data/

repos:
# These are "general" hooks provided by the pre-commit devs
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/AndrejOrsula/pre-commit-cargo
rev: 0.5.0
hooks:
- id: cargo-fmt
entry: cargo +nightly fmt
- id: cargo-clippy
args:
- --all-targets
- --all-features
- --tests
- --
- --deny
- warnings
- id: cargo-doc
args:
- --workspace
- --no-deps
- repo: https://github.com/EmbarkStudios/cargo-deny
rev: 0.19.9
hooks:
- id: cargo-deny
args:
- --all-features
- --workspace
- check
- --deny
- unmatched-skip
- --deny
- license-not-encountered
- --deny
- license-exception-not-encountered
- --deny
- advisory-not-detected
- --hide-inclusion-graph
- repo: https://github.com/bnjbvr/cargo-machete
rev: 6ddd489
hooks:
- id: cargo-machete
args:
- --with-metadata
- repo: https://github.com/weichweich/olpat
rev: v0.10.0
hooks:
- id: olpat-format
- id: olpat-lint
Loading
Loading