Asked an elephant to help

This commit is contained in:
Caleb Owens 2024-07-08 20:15:29 +02:00
parent b0fa72ac42
commit 0ea801c5ea
No known key found for this signature in database
2 changed files with 13 additions and 4 deletions

View File

@ -8,6 +8,11 @@ runs:
using: "composite"
steps:
- uses: ./.github/actions/init-env-rust
- name: Rust Cache
uses: Swatinem/rust-cache@v2.7.3
with:
key: ${{ inputs.features }}
- run: |
printf '%s\n' "$JSON_DOC" > /tmp/features.json
@ -18,13 +23,13 @@ runs:
shell: bash
- run: |
cargo test --locked --all-targets $(cat /tmp/features)
cargo test --workspace $(cat /tmp/features)
env:
GITBUTLER_TESTS_NO_CLEANUP: "1"
shell: bash
- run: cargo clippy --workspace --all-targets $(cat /tmp/features) -- -D warnings
- run: cargo clippy --workspace $(cat /tmp/features) -- -D warnings
shell: bash
- run: cargo clippy --workspace --all-targets --tests $(cat /tmp/features) -- -D warnings
- run: cargo clippy --workspace --tests $(cat /tmp/features) -- -D warnings
shell: bash

View File

@ -138,5 +138,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/init-env-rust
- name: Rust Cache
uses: Swatinem/rust-cache@v2.7.3
with:
key: ${{ inputs.features }}
- name: "cargo check"
run: cargo check --all --bins --examples --features windows
run: cargo check --workspace --bins --examples --features windows