-
Notifications
You must be signed in to change notification settings - Fork 30
52 lines (49 loc) · 1.19 KB
/
integration.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: 🚧 Integration
on:
pull_request:
push:
branches:
- "main"
jobs:
test:
name: 🧪 Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: pnpm/action-setup@v3.0.0
name: Install pnpm
with:
version: 8
- uses: actions/setup-node@main
with:
cache: pnpm
- run: pnpm install --frozen-lockfile --prefer-offline
- run: pnpm run test
format:
name: 💅 Check format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: pnpm/action-setup@v3.0.0
name: Install pnpm
with:
version: 8
- uses: actions/setup-node@main
with:
cache: pnpm
- run: pnpm install --frozen-lockfile --prefer-offline
- run: pnpm prettier --check .
nextjs:
name: ⚛️ NextJS application
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: pnpm/action-setup@v3.0.0
name: Install pnpm
with:
version: 8
- uses: actions/setup-node@main
with:
cache: pnpm
- run: pnpm install --frozen-lockfile --prefer-offline
- run: pnpm build