Skip to content

Commit 61db806

Browse files
feat(ci): GitHub action for pull requests
1 parent e9191d7 commit 61db806

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/pull-request.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: 'Pull Request'
2+
on:
3+
pull_request:
4+
branches:
5+
- dev
6+
paths-ignore:
7+
- .gitignore
8+
- README.md
9+
- LICENSE
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Use Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: v21.1.0
21+
cache: 'npm'
22+
23+
- name: Install Dependencies and Build
24+
run: |
25+
npm ci
26+
npx prisma generate
27+
npm run build:prod
28+
29+
env:
30+
CI: true
31+
32+
- name: Cache Prisma Binary
33+
uses: actions/cache@v4
34+
with:
35+
path: ~/.npm/_npx
36+
key: prisma-binary-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
37+
restore-keys: prisma-binary-${{ runner.os }}-

0 commit comments

Comments
 (0)