-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.59 KB
/
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
name: Test maven archetype project generation
on: [ push ]
concurrency:
group: ${{ github.workflow }}-${{ github.sha }}
cancel-in-progress: true
jobs:
generate-endpoint-project:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ '11', '17', '21' ]
steps:
- uses: actions/checkout@v4
- name: Use Java ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
- name: Info (java)
run: java --version
- name: Info (maven)
run: mvn --version
- name: Install archetype
run: mvn -ntp clean install "archetype:update-local-catalog"
- name: Create endpoint project
env:
WORKPATH: work/${{ matrix.java-version }}/
run: |
mkdir -p "$WORKPATH"
cd "$WORKPATH"
mvn archetype:generate \
-DarchetypeGroupId=eu.clarin.sru.fcs \
-DarchetypeArtifactId=fcs-endpoint-archetype \
-DarchetypeVersion=1.6.0-SNAPSHOT \
-DarchetypeCatalog=local \
-DgroupId=eu.clarin.sru.fcs.my \
-DartifactId=test-endpoint \
-Dversion=1.0-SNAPSHOT \
-DinstitutionName="Test endpoint for Java ${{ matrix.java-version }}" \
-B -X -ntp
- name: Build endpoint project
env:
WORKPATH: work/${{ matrix.java-version }}/
run: |
cd "$WORKPATH"
cd "test-endpoint/"
mvn -ntp clean package
mvn -ntp dependency:tree -Ddetail=true