chore(ci): fix linter

This commit is contained in:
omo50
2026-04-18 15:26:44 -06:00
parent 9159abef68
commit e042f45eeb

View File

@@ -42,16 +42,16 @@ jobs:
path: ./linter-bin path: ./linter-bin
key: linter-v1-${{ runner.os }}-${{ hashFiles('src/actions/somnus/core/**/*.rs', 'src/actions/somnus/core/Cargo.toml', 'src/actions/somnus/core/Cargo.lock') }} key: linter-v1-${{ runner.os }}-${{ hashFiles('src/actions/somnus/core/**/*.rs', 'src/actions/somnus/core/Cargo.toml', 'src/actions/somnus/core/Cargo.lock') }}
- name: Install Rust
if: steps.cache-linter.outputs.cache-hit != 'true'
uses: https://github.com/dtolnay/rust-toolchain@stable
- name: Rust Cache - name: Rust Cache
if: steps.cache-linter.outputs.cache-hit != 'true' if: steps.cache-linter.outputs.cache-hit != 'true'
uses: https://github.com/Swatinem/rust-cache@v2 uses: https://github.com/Swatinem/rust-cache@v2
with: with:
workspaces: "src/actions/somnus/core -> target" workspaces: "src/actions/somnus/core -> target"
- name: Install Rust
if: steps.cache-linter.outputs.cache-hit != 'true'
uses: https://github.com/dtolnay/rust-toolchain@stable
- name: Build Linters - name: Build Linters
if: steps.cache-linter.outputs.cache-hit != 'true' if: steps.cache-linter.outputs.cache-hit != 'true'
run: | run: |
@@ -59,8 +59,8 @@ jobs:
--manifest-path src/actions/somnus/core/Cargo.toml \ --manifest-path src/actions/somnus/core/Cargo.toml \
--bin json-linter --bin toml-linter --bin json-linter --bin toml-linter
mkdir -p ./linter-bin mkdir -p ./linter-bin
cp src/actions/somnus/core/target/release/json-linter ./linter-bin/ cp src/actions/somnus/core/src/bin/json-linter ./linter-bin/
cp src/actions/somnus/core/target/release/toml-linter ./linter-bin/ cp src/actions/somnus/core/src/bin/toml-linter ./linter-bin/
- name: Run Linters - name: Run Linters
run: | run: |