Skip to content

Commit

Permalink
Test all profiles in CI. (#1208)
Browse files Browse the repository at this point in the history
When running the test suite on GitHub, make sure all profiles are
tested, to catch any breakage of a profile-specific configuration.

When testing the "release" profile, signing of the packages is
explicitly disabled to avoid needless access to the release signing key.
  • Loading branch information
gouttegd authored May 17, 2024
1 parent 863c39a commit 5c81ffe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ on:
workflow_dispatch:

jobs:
publish:
test:
strategy:
matrix:
profile: [ default, ide, release ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -18,4 +21,4 @@ jobs:
java-version: '11'
distribution: 'adopt'
- name: Run test suite
run: mvn --batch-mode test
run: mvn --batch-mode --activate-profiles ${{ matrix.profile }} --define release.signing.disabled=true clean verify
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,9 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<configuration>
<skip>${release.signing.disabled}</skip>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down

0 comments on commit 5c81ffe

Please sign in to comment.