Skip to content

Commit 2cda632

Browse files
Setup build, lint, test CI job using remote caching (#4)
1 parent fb40341 commit 2cda632

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
8+
jobs:
9+
ci:
10+
runs-on: ubuntu-latest
11+
env:
12+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
13+
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v3
20+
with:
21+
version: 10
22+
23+
- name: Setup Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 22
27+
cache: "pnpm"
28+
cache-dependency-path: "**/pnpm-lock.yaml"
29+
30+
- name: Install dependencies
31+
run: pnpm install --frozen-lockfile
32+
33+
- name: Build
34+
run: pnpm build
35+
36+
- name: Lint
37+
run: pnpm lint
38+
39+
- name: Test
40+
run: pnpm test

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ dist-ssr
2121
*.njsproj
2222
*.sln
2323
*.sw?
24+
25+
# Turborepo
26+
.turbo

0 commit comments

Comments
 (0)