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: |
|
run: |
|
||||||
sudo apt-get update
|
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
|
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
|
- uses: ./.github/actions/init-env-node
|
||||||
- run: pnpm story:build
|
- run: pnpm story:build
|
||||||
|
|
||||||
test:
|
test-rust:
|
||||||
needs: changes
|
needs: changes
|
||||||
if: ${{ needs.changes.outputs.rust == 'true' }}
|
if: ${{ needs.changes.outputs.rust == 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.github/actions/init-env-rust
|
- 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
|
- run: cargo test --locked
|
||||||
|
|
||||||
udeps:
|
check-rust:
|
||||||
needs: changes
|
needs: changes
|
||||||
if: ${{ needs.changes.outputs.rust == 'true' }}
|
if: ${{ needs.changes.outputs.rust == 'true' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.github/actions/init-env-node
|
|
||||||
- uses: ./.github/actions/init-env-rust
|
- uses: ./.github/actions/init-env-rust
|
||||||
with:
|
with:
|
||||||
rust: "nightly"
|
rust: "nightly"
|
||||||
- name: Install cargo udeps
|
- run: cargo install cargo-udeps --locked
|
||||||
run: cargo install cargo-udeps --locked
|
- run: cargo install cargo-cranky --locked
|
||||||
- run: pnpm build
|
|
||||||
- run: cargo +nightly udeps --all-targets
|
- run: cargo +nightly udeps --all-targets
|
||||||
|
- run: cargo cranky --all-targets --all-features
|
||||||
|
Loading…
Reference in New Issue
Block a user