-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 1000 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on:
push:
branches:
- main
pull_request_target:
jobs:
test:
runs-on: ubuntu-latest
env:
NOTION_KEY: ${{ secrets.NOTION_KEY }}
NOTION_DATABASE_ID_BLOG: ${{ secrets.NOTION_DATABASE_ID_BLOG }}
NOTION_PAGE_ID_JOB: ${{ secrets.NOTION_PAGE_ID_JOB }}
CLOUDINARY_NAME: ${{ secrets.CLOUDINARY_NAME }}
CLOUDINARY_API_KEY: ${{ secrets.CLOUDINARY_API_KEY }}
CLOUDINARY_API_SECRET: ${{ secrets.CLOUDINARY_API_SECRET }}
DRAFT_API_SECRET: ${{ secrets.DRAFT_API_SECRET }}
REVALIDATE_API_SECRET: ${{ secrets.REVALIDATE_API_SECRET }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Check type
run: npm run type-check
- name: Lint
run: npm run lint
- name: Format
run: npm run format