mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-12 16:43:03 +03:00
Merge pull request #1420 from gitbutlerapp/add-rust-tests-and-check
🔨 chore: update Rust test and check workflows
This commit is contained in:
commit
7a3de16e0f
4
.github/actions/init-env-rust/action.yaml
vendored
4
.github/actions/init-env-rust/action.yaml
vendored
@ -35,3 +35,7 @@ runs:
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
|
||||
|
||||
- name: placeholder for ui assets
|
||||
shell: bash
|
||||
run: mkdir packages/ui/build
|
||||
|
15
.github/workflows/push.yaml
vendored
15
.github/workflows/push.yaml
vendored
@ -70,30 +70,25 @@ jobs:
|
||||
- uses: ./.github/actions/init-env-node
|
||||
- run: pnpm story:build
|
||||
|
||||
test:
|
||||
test-rust:
|
||||
needs: changes
|
||||
if: ${{ needs.changes.outputs.rust == 'true' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/init-env-rust
|
||||
- uses: ./.github/actions/init-env-node
|
||||
- run: pnpm build
|
||||
- run: cargo install cargo-cranky
|
||||
- run: cargo cranky --all-targets --all-features
|
||||
- run: cargo test --locked
|
||||
|
||||
udeps:
|
||||
check-rust:
|
||||
needs: changes
|
||||
if: ${{ needs.changes.outputs.rust == 'true' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/init-env-node
|
||||
- uses: ./.github/actions/init-env-rust
|
||||
with:
|
||||
rust: "nightly"
|
||||
- name: Install cargo udeps
|
||||
run: cargo install cargo-udeps --locked
|
||||
- run: pnpm build
|
||||
- run: cargo install cargo-udeps --locked
|
||||
- run: cargo install cargo-cranky --locked
|
||||
- run: cargo +nightly udeps --all-targets
|
||||
- run: cargo cranky --all-targets --all-features
|
||||
|
Loading…
Reference in New Issue
Block a user