-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.16 KB
/
main.yaml
File metadata and controls
54 lines (44 loc) · 1.16 KB
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
name: CI/CD Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-springboot:
name: Build & Test Spring Boot Application
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: '17' # Adjust the Java version if needed
- name: Build Spring Boot Application
run: |
cd Backend
chmod +x ./mvnw # Ensure the Maven wrapper has execute permissions
./mvnw clean package
- name: Run Spring Boot Tests
run: |
cd Backend
./mvnw test
build-vue:
name: Build Vue Application
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16' # Adjust the Node.js version if needed
- name: Install Dependencies and Build Vue App
run: |
cd Frontend/market
npm install
npm run build