Skip to content

Commit

Permalink
ci: run lints and checks on every commit
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewingWeasel committed Aug 22, 2024
1 parent ad4ccae commit 73db1c4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,25 @@ jobs:
- name: install just
uses: extractions/setup-just@v1

- name: setup
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev glibc-source libc6
- name: setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9

- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: "pnpm" # Set this to npm, yarn or pnpm.

- name: install frontend dependencies
run: pnpm install

- name: Rust setup
uses: dtolnay/rust-toolchain@nightly
with:
Expand All @@ -34,4 +48,4 @@ jobs:
run: just test

- name: Run lints
run: just test
run: just check
6 changes: 2 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ fix: && format
test:
cargo test

rust-check: test lint
rust-check: lint
ts-check:
pnpm vue-tsc

ci-check:
actionlint

check:
rust-check
ts-check
check: rust-check ts-check

pre-commit:
#!/usr/bin/env sh
Expand Down

0 comments on commit 73db1c4

Please sign in to comment.