Skip to content

Commit 8b20685

Browse files
committed
test (#164)
1 parent 24df4e4 commit 8b20685

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/nextjs.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: 9
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: '20'
24+
cache: 'pnpm'
25+
26+
- name: Install pnpm
27+
run: npm install -g pnpm
28+
29+
- name: Install dependencies
30+
run: pnpm install
31+
32+
- name: Cache pnpm store
33+
uses: actions/cache@v3
34+
with:
35+
path: ~/.pnpm-store
36+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
37+
restore-keys: |
38+
${{ runner.os }}-pnpm-store-
39+
40+
- name: Cache Next.js build
41+
uses: actions/cache@v3
42+
with:
43+
path: .next/cache
44+
key: ${{ runner.os }}-nextjs-cache-${{ hashFiles('**/*') }}
45+
restore-keys: |
46+
${{ runner.os }}-nextjs-cache-
47+
48+
- name: Build Next.js
49+
run: pnpm run build

0 commit comments

Comments
 (0)