Merge pull request #1420 from gitbutlerapp/add-rust-tests-and-check

🔨 chore: update Rust test and check workflows
This commit is contained in:
Nikita Galaiko 2023-10-19 13:09:34 +02:00 committed by GitHub
commit 7a3de16e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 10 deletions

View File

@ -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

View File

@ -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