mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-23 11:45:06 +03:00
Asked an elephant to help
This commit is contained in:
parent
b0fa72ac42
commit
0ea801c5ea
11
.github/actions/check-crate/action.yaml
vendored
11
.github/actions/check-crate/action.yaml
vendored
@ -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
|
||||
|
6
.github/workflows/push.yaml
vendored
6
.github/workflows/push.yaml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user