forked from jflamy/owlcms4
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 958 Bytes
/
master.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
name: Main
on:
push:
pull_request:
paths-ignore:
- '*.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Docker image
id: build
run: docker build . -t dvfdocker/owlcms4:latest
shell: bash
- run: docker save dvfdocker/owlcms4:latest -o owlcms4.tar
- uses: actions/upload-artifact@v3
with:
name: owlcms4
path: owlcms4.tar
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Go offline using the pom.xml
run: mvn dependency:go-offline package -P production -am -pl owlcms -Dmaven.test.skip=true
- name: Build
run: mvn clean package -P production -am -pl owlcms -Dmaven.test.skip=true
- name: Run tests
run: mvn verify -am -pl owlcms