Skip to content

Commit e503cb0

Browse files
committed
ci: add github actions for code style and file formatting, and build
1 parent 1785257 commit e503cb0

2 files changed

Lines changed: 58 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build
2+
on: [push, pull_request]
3+
4+
jobs:
5+
lint:
6+
name: 🚀 Build
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Setup pnpm
14+
uses: pnpm/action-setup@v4
15+
with:
16+
version: 10
17+
run_install: false
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: 'pnpm'
24+
25+
- name: Install dependencies
26+
run: pnpm install
27+
28+
- name: Lint
29+
run: pnpm dlx prisma generate && pnpm run build

.github/workflows/validations.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Validations
2+
on: [push, pull_request]
3+
4+
jobs:
5+
lint:
6+
name: 🧹 Code style and file formatting
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Setup pnpm
14+
uses: pnpm/action-setup@v4
15+
with:
16+
version: 10
17+
run_install: false
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: 'pnpm'
24+
25+
- name: Install dependencies
26+
run: pnpm install
27+
28+
- name: Lint
29+
run: pnpm dlx prisma generate && pnpm run lint

0 commit comments

Comments
 (0)