Skip to content

Commit

Permalink
chore(ci): build avoidance (javadoc, gpg)
Browse files Browse the repository at this point in the history
- chore: don't rebuild javadoc during tests in ci
- chore: don't run with gpg enabled in ci

Signed-off-by: Sam Gammon <[email protected]>
  • Loading branch information
sgammon committed Mar 12, 2024
1 parent 3403c87 commit 0d6f994
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 9 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/ci.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,25 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- name: 'Set up JDK 11'
- name: 'Set up JDK 21'
uses: actions/setup-java@9704b39bf258b59bc04b50fa2dd55e9ed76b47a8 # v4.1.0
with:
java-version: 11
java-version: 21
distribution: 'zulu'
cache: 'maven'
- name: 'Install'
shell: bash
run: ./mvnw --strict-checksums -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn install -U -DskipTests=true -f $ROOT_POM
run: |
./mvnw \
--strict-checksums \
-B \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
install \
-U \
-DskipTests=true \
-Dmaven.javadoc.skip=false \
-Dgpg.skip \
-f $ROOT_POM
- name: Generate hashes
shell: bash
id: hash
Expand Down Expand Up @@ -138,10 +148,10 @@ jobs:
egress-policy: audit
- name: 'Check out repository'
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: 'Set up JDK 11'
- name: 'Set up JDK 21'
uses: actions/setup-java@9704b39bf258b59bc04b50fa2dd55e9ed76b47a8 # v4.1.0
with:
java-version: 11
java-version: 21
distribution: 'zulu'
server-id: ${{ inputs.repository }}
server-username: CI_DEPLOY_USERNAME
Expand Down Expand Up @@ -171,10 +181,10 @@ jobs:
egress-policy: audit
- name: 'Check out repository'
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: 'Set up JDK 11'
- name: 'Set up JDK 21'
uses: actions/setup-java@9704b39bf258b59bc04b50fa2dd55e9ed76b47a8 # v4.1.0
with:
java-version: 11
java-version: 21
distribution: 'zulu'
cache: 'maven'
- name: 'Generate latest docs'
Expand Down
22 changes: 20 additions & 2 deletions .github/workflows/ci.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,28 @@ jobs:
cache: 'maven'
- name: 'Install'
shell: bash
run: ./mvnw --strict-checksums -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn install -U -DskipTests=true -f $ROOT_POM
run: |
./mvnw \
--strict-checksums \
-B \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
install \
-U \
-DskipTests=true \
-Dgpg.skip \
-Dmaven.javadoc.skip=true \
-f $ROOT_POM
- name: 'Test'
shell: bash
run: ./mvnw --strict-checksums -B -P!standard-with-extra-repos verify -U -Dmaven.javadoc.skip=true -f $ROOT_POM
run: |
./mvnw \
--strict-checksums \
-B \
-P!standard-with-extra-repos \
verify \
-U \
-Dmaven.javadoc.skip=true \
-f $ROOT_POM
- name: 'Print Surefire reports'
# Note: Normally a step won't run if the job has failed, but this causes it to
if: ${{ failure() }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
-U \
-DskipTests=true \
-Dmaven.javadoc.skip=true \
-Dgpg.skip \
-f pom.xml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
Expand Down

0 comments on commit 0d6f994

Please sign in to comment.