Skip to content

Commit

Permalink
refactor(ci): specify node version, add rust cache
Browse files Browse the repository at this point in the history
  • Loading branch information
kareemmahlees committed Dec 30, 2023
1 parent ce9aebc commit 78ba530
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "latest"
node-version: 20
cache: "yarn"
cache-dependency-path: "yarn.lock"
- name: Install commitlint
Expand All @@ -32,10 +32,10 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v4
with:
node-version: "latest"
node-version: 20
cache: "yarn"
cache-dependency-path: "yarn.lock"
- name: Install Deps
- name: Install Dependencies
run: yarn add next eslint eslint-config-next prettier
- name: Run Eslint
run: yarn next:lint
Expand All @@ -47,15 +47,17 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Tauri dependencies
run: >-
sudo apt-get update &&
sudo apt-get install -y
libgtk-3-dev
libayatana-appindicator3-dev
libwebkit2gtk-4.0-dev
- name: Install tauri specific dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev
- uses: moonrepo/setup-rust@v1
with:
components: clippy
- name: Run Clippy
run: yarn rust:lint

- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"

0 comments on commit 78ba530

Please sign in to comment.