Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Almaju committed Nov 16, 2024
1 parent edd4724 commit 7294dd9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ jobs:
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: install frontend dependencies
run: yarn install # change this to npm, pnpm or bun depending on which one you use.
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,40 @@ on:
pull_request:

jobs:
setup:
name: install dependencies (ubuntu only)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt-get update
- run: sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

check:
name: Check
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v2
- run: cargo check

test:
name: Test Suite
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v2
- run: cargo test

fmt:
name: Rustfmt
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v2
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v2
- run: rustup component add clippy
- run: cargo clippy -- -D warnings

0 comments on commit 7294dd9

Please sign in to comment.