-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (37 loc) · 963 Bytes
/
ci.yaml
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
37
38
39
name: ci
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
ci:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: npm
- name: Install dependencies
run: npm ci
- name: Prettier Formatting
run: npm run format
- name: Lint
run: npm run lint
# - name: Run verify types
# run: pnpm run verify-types
- name: Build project
run: |
touch .env.local
echo CONVEX_DEPLOYMENT=${{ secrets.CONVEX_DEPLOYMENT }} >> .env.local
echo NEXT_PUBLIC_CONVEX_URL=${{ secrets.NEXT_PUBLIC_CONVEX_URL }} >> .env.local
npm run build
# - name: Run test with coverage
# run: pnpm run coverage
- name: Test
run: npm run test