Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

chore(ci): Speed up CI by caching #27

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,35 @@ jobs:
with:
fetch-depth: 2

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- uses: pnpm/action-setup@v2.0.1
with:
version: 8.6.3
run_install: false

- uses: nanasess/setup-chromedriver@v2
- run: |
chromedriver --url-base=/wd/hub &
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Setup Node.js environment
uses: actions/setup-node@v3
- uses: actions/cache@v3
name: Setup pnpm cache
with:
node-version: 18
cache: "pnpm"
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install

- uses: nanasess/setup-chromedriver@v2
- run: |
chromedriver --url-base=/wd/hub &

- name: Test
run: pnpm turbo run test:ci
Loading