forked from OpenClassrooms-Student-Center/JavaPathENProject8
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (36 loc) · 1.36 KB
/
Copy pathbuild.yml
File metadata and controls
48 lines (36 loc) · 1.36 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
name: TourGuide Continuous Integration
on:
push:
branches:
- "master"
- "github-actions"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Download sources
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Install gpsUtil JAR
run: mvn install:install-file -Dfile=TourGuide/libs/gpsUtil.jar -DgroupId=gpsUtil -DartifactId=gpsUtil -Dversion=1.0.0 -Dpackaging=jar
- name: Install tripPricer JAR
run: mvn install:install-file -Dfile=TourGuide/libs/TripPricer.jar -DgroupId=tripPricer -DartifactId=tripPricer -Dversion=1.0.0 -Dpackaging=jar
- name: Install rewardCentral JAR
run: mvn install:install-file -Dfile=TourGuide/libs/RewardCentral.jar -DgroupId=rewardCentral -DartifactId=rewardCentral -Dversion=1.0.0 -Dpackaging=jar
- name: Build with Maven
run: mvn clean compile
working-directory: TourGuide
- name: Run tests
run: mvn test
working-directory: TourGuide
- name: Package the app
run: mvn -Dmaven.test.skip=true package --file TourGuide/pom.xml
- name: Deploy the app
if: github.ref == 'refs/heads/master'
run: mvn deploy
working-directory: TourGuide