Skip to content

Commit

Permalink
fix(ci): pnpm scripst and installation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kareemmahlees committed Jan 1, 2024
1 parent aea4d30 commit 6cc1a11
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
node-version: 20
cache: "pnpm"

- name: Enable Corepack
run: corepack enable

- name: Install commitlint
run: |
yarn add conventional-changelog-conventionalcommits
Expand Down Expand Up @@ -50,10 +53,15 @@ jobs:
node-version: 20
cache: "pnpm"

- name: Enable Corepack
run: corepack enable

- name: Run Lint
run: pnpm lint
run: pnpm ts:lint

- name: Run Prettier
run: pnpm format:check

clippy:
runs-on: ubuntu-latest
steps:
Expand All @@ -76,5 +84,7 @@ jobs:
with:
workspaces: "./src-tauri -> target"

- uses: pnpm/action-setup@v2

- name: Run Clippy
run: pnpm --filter @tablex/core rust:lint
run: pnpm rust:lint
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
cache: "pnpm"

- name: install tauri cli
run: pnpm add -Dw @tauri-apps/cli
run: pnpm add -W @tauri-apps/cli

- uses: tauri-apps/tauri-action@v0
env:
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"astro:dev": "pnpm --filter @tablex/web dev",
"astro:build": "pnpm --filter @tablex/web build",
"astro:preview": "pnpm --filter @tablex/web preview",
"ts:lint": "eslint . && pnpm --filter @tablex/core next:lint",
"rust:lint": "pnpm --filter @tablex/core rust:lint",
"lint": "eslint . && pnpm --filter @tablex/core next:lint && pnpm --filter @tablex/core rust:lint",
"format:check": "npx prettier . --check",
"format:fix": "npx prettier . --write"
Expand Down

0 comments on commit 6cc1a11

Please sign in to comment.