forked from ahdis/matchbox
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.42 KB
/
integration_tests.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
name: Integration tests
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
integration_test:
runs-on: ubuntu-latest
steps:
- name: Checkout matchbox
uses: actions/checkout@v3
with:
path: matchbox
- name: Checkout integration tests
uses: actions/checkout@v3
with:
path: matchbox-int-tests
repository: ahdis/matchbox-int-tests
- name: Setup Java 20
uses: actions/setup-java@v3
# https://github.com/actions/setup-java#usage
with:
java-version: 20
distribution: adopt
cache: maven
- name: Install matchbox locally
run: mvn --batch-mode --no-transfer-progress --update-snapshots -DskipTests -P !boot install
working-directory: matchbox
- name: Extract matchbox version
run: echo "MATCHBOX_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> "$GITHUB_ENV"
working-directory: matchbox
- name: Show matchbox version
run: |
echo "Version '$MATCHBOX_VERSION'"
echo "Version '${{ env.MATCHBOX_VERSION }}'"
- name: Run the tests
timeout-minutes: 45 # We need a long timeout here
run: mvn --batch-mode --no-transfer-progress --update-snapshots -Dmatchbox.version="${{ env.MATCHBOX_VERSION }}" test
working-directory: matchbox-int-tests