Skip to content

Commit

Permalink
Test generate endpoint project in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Querela committed Oct 28, 2024
1 parent 52ce5e6 commit 5758aad
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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: Install archetype
run: mvn clean install "archetype:update-local-catalog"

- name: Create endpoint project
run: |
PATH=work/${{ matrix.java-version }}/
mkdir -p "$PATH"
cd "$PATH"
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

0 comments on commit 5758aad

Please sign in to comment.