-
Notifications
You must be signed in to change notification settings - Fork 145
96 lines (83 loc) · 2.54 KB
/
maven-test.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
85
86
87
88
89
90
91
92
93
94
95
96
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on: [push, pull_request]
jobs:
test-solver:
runs-on: ubuntu-latest
# Tests matrix
strategy:
#fail-fast: false
matrix:
group: [ "1s", "10s", "checker", "ibex" ]
# The different steps
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'maven'
# Install Ibex
- name: Install Ibex
if: matrix.group == 'ibex'
run: sh scripts/install-ibex.sh
# Regression tests
- name: Test ${{ matrix.group }}
run: mvn -B --file pom.xml package -Pcoverage -DtestFailureIgnore=true -Dgroups=${{ matrix.group }}
test-parser:
needs: [ test-solver ]
runs-on: ubuntu-latest
# Tests matrix
strategy:
#fail-fast: false
matrix:
group: [ "xcsp", "dimacs", "mps" ]
# The different steps
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'maven'
# Regression tests
- name: Test ${{ matrix.group }}
run: mvn -B --file pom.xml package -Pcoverage -DtestFailureIgnore=true -Dgroups=${{ matrix.group }}
- name: 'Upload XCSP results'
if: matrix.group == 'xcsp'
uses: actions/upload-artifact@v3
with:
path: ${{ github.workspace }}/parsers/target/xcsp_results.csv
test-mzn:
needs: [ test-solver ]
runs-on: ubuntu-latest
# Tests matrix
strategy:
#fail-fast: false
matrix:
group: [ "mzn" ]
# The different steps
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
#cache: 'maven'
# Regression tests
- name: Test ${{ matrix.group }}
run: mvn -B --file pom.xml package -Pcoverage -DtestFailureIgnore=true -Dgroups=${{ matrix.group }}
- name: 'Upload MZN results'
uses: actions/upload-artifact@v3
with:
path: ${{ github.workspace }}/parsers/target/mzn_results.csv