-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (35 loc) · 1.14 KB
/
build.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
name: Build and test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Clone and build boot-framework
uses: actions/checkout@v3
with:
repository: steliomo/boot-frameworks
ref: 1.0.6
path: boot-frameworks
- name: Copy the report files
run: mkdir -p /opt/grocery/data/reports && cp -r grocery-persistence/src/main/resources/reports/*.jrxml /opt/grocery/data/reports && cp -r grocery-persistence/src/main/resources/img/*.* /opt/grocery/data/reports
- name: Build and install boot-framework
run: mvn clean install -f boot-frameworks
- name: Update Ubuntu
run: sudo apt-get update
- name: Install fonts
run: sudo apt-get install ttf-mscorefonts-installer
- name: Update font Source
run: sudo fc-cache -f -v
- name: Build with Maven
run: mvn clean install