Skip to content

Commit

Permalink
further trim ci matrix for network stability
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Nov 8, 2022
1 parent 6800aa6 commit 75e9f52
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 20 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@ on: [ push, pull_request ]
env:
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
JAVA_VERSION: 19

jobs:
analyze:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 19 ]
env:
JAVA_VERSION: ${{ matrix.java }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@2e205a28d0e1da00c5f53b161f4067b052c61f34
Expand All @@ -23,8 +19,8 @@ jobs:
- name: Run analyzers
uses: ./.github/actions/run-gradle
with:
java: ${{ env.JAVA_VERSION }}
early-access: false
java: ${{ matrix.java }}
arguments: >
forbiddenApis -DforbiddenApis
pmdJavaPoet pmdMain pmdCodeGen pmdJmh -Dpmd
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ permissions:
env:
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
JAVA_VERSION: 18
JAVA_VERSION: 19

jobs:
analyze:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions: read-all
env:
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
JAVA_VERSION: 18
JAVA_VERSION: 19

jobs:
dependency-submission:
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,25 @@ on: [ push, pull_request ]
env:
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
MAX_JVM: 18
JAVA_VERSION: 19

jobs:
examples:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 18 ]
env:
JAVA_VERSION: ${{ matrix.java }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@2e205a28d0e1da00c5f53b161f4067b052c61f34
with:
egress-policy: audit
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: Wandalen/[email protected]
timeout-minutes: 5
with:
action: actions/setup-java@v3
with: |
distribution: temurin
java-version: ${{ matrix.java }}
java-version: ${{ env.JAVA_VERSION }}
attempt_limit: 3
attempt_delay: 2000
- name: Setup Gradle
Expand All @@ -47,7 +42,7 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
key: ${{ runner.os }}-maven-${{ env.JAVA_VERSION }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Simulator
Expand All @@ -58,7 +53,6 @@ jobs:
-Dcaffeine.simulator.files.paths.1="lirs:loop.trace.gz"
-Dcaffeine.simulator.files.paths.2="corda:trace_vaultservice.gz"
- name: Publish Simulator Results
if: matrix.java == env.MAX_JVM
run: |
{
echo '### Adaptivity'
Expand Down
3 changes: 2 additions & 1 deletion gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ ext {
]
platformVerrsions = [
asm: '9.4',
kotlin: '1.7.20',
kotlin: '1.7.21',
]

libraries = [
Expand Down Expand Up @@ -262,6 +262,7 @@ ext {
'com.fasterxml.jackson:jackson-bom': '2.13.4.20221013',
'com.google.protobuf:protobuf-java': '3.21.8',
'com.thoughtworks.xstream:xstream': '1.4.19',
'org.apache.bcel:bcel': '6.6.1',
'org.apache.commons:commons-text': '1.10.0',
'org.apache.httpcomponents:httpclient': '4.5.13',
'org.bouncycastle:bcprov-jdk15on': '1.70',
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-rc-2-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit 75e9f52

Please sign in to comment.