Skip to content

Commit

Permalink
Add deps to gh
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Jul 4, 2024
1 parent 3b7c418 commit f8a9c73
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,36 @@ jobs:
with:
fetch-depth: 0

- name: install tauri dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libselinux
- uses: pnpm/action-setup@v4
with:
version: 9

- name: Restore cached npm dependencies
id: cache-dependencies-restore
uses: actions/cache/restore@v3
with:
path: |
node_modules
key: npm-dependencies-${{ hashFiles('pnpm-lock.yaml') }}

- run: pnpm install --frozen-lockfile
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Cache npm dependencies
id: cache-dependencies-save
uses: actions/cache/save@v3
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: |
node_modules
key: ${{ steps.cache-dependencies-restore.outputs.cache-primary-key }}
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile

- uses: nrwl/nx-set-shas@v3

# This line is needed for nx affected to work when CI is running on a PR
- run: git branch --track main origin/main
if: ${{ github.event_name == 'pull_request' }}

- run: pnpm nx affected -t lint test build --parallel=1
- run: pnpm nx affected -t lint test build

0 comments on commit f8a9c73

Please sign in to comment.