-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (76 loc) · 1.91 KB
/
integration-frontend.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Rememberry Frontend CI
on:
pull_request:
paths:
- "frontend/**"
- ".github/workflows/integration-frontend.yml"
branches: [master]
jobs:
lint-format:
name: lint and format
runs-on: ubuntu-22.04
steps:
- name: checkout code
uses: actions/checkout@v4
- name: get pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: use node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: install dependencies
run: pnpm i --frozen-lockfile
- name: lint
run: pnpm run frontend lint
- name: check formatting
run: |
if ! pnpm run format-check; then
echo "Please format the code by running: pnpm run format"
exit 1
fi
test:
name: test frontend
runs-on: ubuntu-22.04
steps:
- name: checkout code
uses: actions/checkout@v4
- name: get pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: use node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: install dependencies
run: pnpm i --frozen-lockfile
- name: test
run: pnpm run frontend test
build:
name: build
runs-on: ubuntu-22.04
env:
NEXT_PUBLIC_BACKEND_HOST: "localhost"
NEXT_PUBLIC_BACKEND_PORT: "3050"
NEXT_PUBLIC_APP_ENV: "development"
APP_ENV: "development"
steps:
- name: checkout code
uses: actions/checkout@v4
- name: get pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: use node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: install dependencies
run: pnpm i --frozen-lockfile
- name: build
run: pnpm run frontend build