Skip to content

Commit

Permalink
Test against current archetype version on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarmorling committed Feb 18, 2024
1 parent e544954 commit 0e3d1ee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
java-version: 11
distribution: 'temurin'

- name: 'Build Archetype'
- name: 'Build archetype'
run: mvn --no-transfer-progress -B --file pom.xml install

- name: 'Set up Java 17'
Expand All @@ -55,5 +55,8 @@ jobs:
java-version: 17
distribution: 'temurin'

- name: 'Test Archetype'
run: mkdir test && cd test && mvn archetype:generate -B -DarchetypeGroupId=org.moditect.ossquickstart -DarchetypeArtifactId=oss-quickstart-simple-archetype -DarchetypeVersion=1.0.0.Alpha1 -DgroupId=com.example.demos -DartifactId=fancy-project -Dversion=1.0.0-SNAPSHOT -DmoduleName=com.example.fancy && cd fancy-project && ./mvnw -B verify
- name: 'Determine archetype version'
run: echo "ARCHETYPE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV

- name: 'Test archetype'
run: mkdir test && cd test && mvn archetype:generate -B -DarchetypeGroupId=org.moditect.ossquickstart -DarchetypeArtifactId=oss-quickstart-simple-archetype -DarchetypeVersion=${{ env.ARCHETYPE_VERSION }} -DgroupId=com.example.demos -DartifactId=fancy-project -Dversion=1.0.0-SNAPSHOT -DmoduleName=com.example.fancy && cd fancy-project && ./mvnw -B verify

0 comments on commit 0e3d1ee

Please sign in to comment.