-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: checks, lints and test run in ci
- Loading branch information
1 parent
637ebd9
commit d4f45da
Showing
9 changed files
with
97 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Lints and tests | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
pull_request: | ||
branches: ['**'] | ||
types: [opened, synchronize] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
commit-check: | ||
runs-on: ubuntu-latest | ||
name: Check conventional commit compliance | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Check commits | ||
uses: cocogitto/cocogitto-action@v3 | ||
|
||
client-checks: | ||
runs-on: ubuntu-latest | ||
name: Client checks | ||
needs: [commit-check] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: volta-cli/action@v4 | ||
|
||
- run: yarn install --immutable | ||
|
||
- name: Client check | ||
run: yarn check | ||
|
||
- name: Client lint | ||
run: yarn lint | ||
|
||
- run: yarn playwright install --with-deps | ||
|
||
- name: Client test | ||
run: yarn test | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 | ||
|
||
server-checks: | ||
runs-on: ubuntu-latest | ||
name: Server checks | ||
needs: [commit-check] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
shared-key: whooosh-ubuntu-latest | ||
workspaces: src-tauri | ||
|
||
- uses: dtolnay/rust-toolchain@stable | ||
|
||
- uses: awalsh128/cache-apt-pkgs-action@latest | ||
with: | ||
packages: libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev | ||
version: 1.0 | ||
|
||
- name: Server check | ||
run: cargo check --manifest-path src-tauri/Cargo.toml | ||
|
||
- name: Server lint | ||
run: | | ||
cargo fmt --manifest-path src-tauri/Cargo.toml --all -- --check | ||
cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warnings | ||
- name: Server test | ||
run: cargo test --manifest-path src-tauri/Cargo.toml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
name: Tauri | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
pull_request: | ||
branches: ['**'] | ||
types: [opened, synchronize] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters