-
Notifications
You must be signed in to change notification settings - Fork 8
84 lines (64 loc) · 1.86 KB
/
actions.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
81
82
83
84
name: Prebuild check and build
on:
pull_request:
branches:
- develop
jobs:
build-frontend:
name: Build frontend
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install modules
run: cd client && npm ci
- name: Run ESLint and Prettier
run: cd client && npm run check-format && npm run check-lint
- name: Build NextJS project
run: cd client && npm run build
build-backend:
name: Build Backend
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@v2
- name: Set up .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
- name: Run dotnet format
run: cd api && dotnet format --verify-no-changes
- name: Build dotnet project
run: cd api && dotnet build
build-api-v2:
name: Build api_v2 backend
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22.1.0
- name: Install modules
run: cd api_v2 && npm ci
- name: Build NestJS project
run: cd api_v2 && npm run build
build-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create backend env file
run: cp .env.api.example .env.api
- name: Create frontend env file
run: cp .env.client.example .env.client
- name: Create db env file
run: cp .env.db.example .env.db
- name: Create api_v2 env file
run: cp .env.api_v2.example .env.api_v2
- name: Build the Docker image
run: docker compose build