Skip to content

Minor MayJuun Changes #2

Minor MayJuun Changes

Minor MayJuun Changes #2

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