@@ -22,40 +22,49 @@ jobs:
2222 name : Task cargo ${{ matrix.action }}
2323 runs-on : ubuntu-latest
2424 strategy :
25+ fail-fast : false
2526 matrix :
26- action : [clippy, fmt, nextest]
27+ action : [clippy, fmt, nextest, vstyle ]
2728 steps :
2829 - name : Fetch latest code
29- uses : actions/checkout@v4
30+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
3031 - name : Setup build environment
3132 if : matrix.action != 'fmt'
3233 run : rustup show
33- - uses : Swatinem/rust-cache@v2
34+ - uses : Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
3435 if : matrix.action != 'fmt'
3536 with :
3637 prefix-key : ${{ env.CACHE_VERSION }}
3738 key : ${{ matrix.action }}
39+ - name : Install cargo-make
40+ uses : taiki-e/install-action@c93ccc03e00cd0e08e494f5fd058a6c55a6a1907
41+ with :
42+ tool : cargo-make
43+ - name : Install taplo
44+ if : matrix.action == 'fmt'
45+ uses : taiki-e/install-action@c93ccc03e00cd0e08e494f5fd058a6c55a6a1907
46+ with :
47+ tool : taplo
3848 - name : Cargo clippy
3949 if : matrix.action == 'clippy'
40- uses : giraffate/clippy-action@v1
41- with :
42- clippy_flags : --workspace --all-features --all-targets --locked
50+ run : cargo make lint-rust
4351 - name : Cargo fmt
4452 if : matrix.action == 'fmt'
4553 run : |
4654 rustup toolchain install nightly
4755 rustup component add rustfmt --toolchain nightly
48- cargo +nightly fmt --all -- - -check
56+ cargo make fmt-check
4957 - name : Install cargo-nextest
5058 if : matrix.action == 'nextest'
51- uses : taiki-e/install-action@nextest
59+ uses : taiki-e/install-action@c93ccc03e00cd0e08e494f5fd058a6c55a6a1907
60+ with :
61+ tool : nextest
5262 - name : Cargo nextest
5363 if : matrix.action == 'nextest'
54- run : cargo nextest run --cargo-profile ci-dev --workspace --all-features --all-targets --locked
55- - name : Fast fail
56- uses : vishnudxb/cancel-workflow@v1.2
57- if : failure()
58- with :
59- repo : hack-ink/unescaper
60- workflow_id : ${{ github.run_id }}
61- access_token : ${{ github.token }}
64+ run : cargo make test-rust
65+ - name : Install cargo-vstyle
66+ if : matrix.action == 'vstyle'
67+ run : cargo install --git https://github.com/hack-ink/vibe-style --rev f509613696c60fbc5e444072469024888d91d88b --locked
68+ - name : Cargo vstyle
69+ if : matrix.action == 'vstyle'
70+ run : cargo make lint-vstyle-rust
0 commit comments