Skip to content

Commit 50462e9

Browse files
committed
Improve CI times/caching.
1 parent f0a2fa5 commit 50462e9

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: CI
22
on:
33
push:
4-
branches-ignore:
5-
- reactivity-v2
4+
branches: ["main"]
65
pull_request:
7-
branches:
8-
- main
6+
types: [opened, synchronize]
97
jobs:
108
build:
119
name: Build
@@ -15,15 +13,18 @@ jobs:
1513
node: ["18", "20", "22"]
1614
steps:
1715
- uses: actions/checkout@v4
18-
- name: Setup pnpm
19-
uses: pnpm/action-setup@v3
20-
with:
21-
version: 9
2216
- uses: actions/setup-node@v4
2317
with:
2418
node-version: ${{ matrix.node }}
2519
cache: "pnpm"
26-
- name: Install dependencies
27-
run: pnpm install --frozen-lockfile
20+
- name: Setup pnpm
21+
uses: pnpm/action-setup@v4
22+
- name: Cache turbo setup
23+
uses: actions/cache@v4
24+
with:
25+
path: .turbo
26+
key: ${{ runner.os }}-turbo-${{ github.sha }}
27+
restore-keys: |
28+
${{ runner.os }}-turbo-
2829
- name: Run CI with turbo
2930
run: pnpm run ci

turbo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://turbo.build/schema.json",
23
"tasks": {
34
"turbo:build": {
45
"dependsOn": ["^turbo:build"],

0 commit comments

Comments
 (0)