Skip to content

Commit

Permalink
Add caching to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Nov 1, 2023
1 parent 967f226 commit 710f3e9
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm

- name: Install dependencies
run: pnpm install --no-frozen-lockfile --ignore-scripts
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/release-ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,20 @@ jobs:
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 18
cache: pnpm

- name: Install Dependencies
run: pnpm install --ignore-scripts

- name: Cache turbo build setup
uses: actions/cache@v3
with:
path: node_modules/.cache/turbo
key: turbo-${{ github.sha }}
restore-keys: |
turbo-
- name: Build
run: pnpm build
env:
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,28 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: pnpm/[email protected]

- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 18
cache: pnpm

- name: Install Dependencies
run: pnpm install --no-frozen-lockfile --ignore-scripts

- name: Cache turbo build setup
uses: actions/cache@v3
with:
path: node_modules/.cache/turbo
key: turbo-${{ github.sha }}
restore-keys: |
turbo-
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,29 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 2
fetch-depth: 0

- uses: pnpm/[email protected]

- name: Setup Node.js environment 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 18
cache: pnpm

- name: Install dependencies
run: pnpm install --no-frozen-lockfile --ignore-scripts

- name: Cache turbo build setup
uses: actions/cache@v3
with:
path: node_modules/.cache/turbo
key: turbo-${{ github.sha }}
restore-keys: |
turbo-
- name: Install Playwright browser and dependencies
run: npx playwright install --with-deps chromium
run: pnpm dlx playwright install --with-deps chromium

- name: Lint
run: pnpm test:lint
Expand Down

0 comments on commit 710f3e9

Please sign in to comment.