Skip to content

Commit

Permalink
chore: update github actions (aws#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonli-improving committed Feb 2, 2024
1 parent 6914d55 commit cc5745c
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 42 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Clone repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Get changed files'
Expand All @@ -36,4 +36,6 @@ jobs:
run: echo "ONLY_DOCS=false" >> $GITHUB_OUTPUT
- name: 'Qodana Scan'
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false'}}
uses: JetBrains/[email protected]
uses: JetBrains/[email protected]
with:
use-caches: false
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Clone repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Get changed files'
Expand All @@ -42,7 +42,7 @@ jobs:
run: echo "ONLY_DOCS=false" >> $GITHUB_OUTPUT
- name: 'Set up JDK 8'
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false'}}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 8
Expand All @@ -56,7 +56,7 @@ jobs:
run: ./gradlew jacocoTestReport
- name: 'Archive test results'
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false'}}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: 'junit-report'
path: ./wrapper/build/reports/tests/test/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/maven_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Clone Repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Set up JDK 8'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 8
Expand All @@ -29,7 +29,7 @@ jobs:
base64 -d ~/.gradle/secring.gpg.b64 > ~/.gradle/secring.gpg
- name: 'Install GPG Secret Key'
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/maven_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Clone Repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Set up JDK 8'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 8
Expand All @@ -30,7 +30,7 @@ jobs:
base64 -d ~/.gradle/secring.gpg.b64 > ~/.gradle/secring.gpg
- name: 'Install GPG Secret Key'
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mysql_advanced_performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Clone repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Set up JDK 8'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 8
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
AWS_SESSION_TOKEN: ${{ env.TEMP_AWS_SESSION_TOKEN }}
- name: 'Archive Performance Results'
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: 'performance-results'
path: ./wrapper/build/reports/tests/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mysql_performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Clone repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Set up JDK 8'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 8
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
AWS_SESSION_TOKEN: ${{ env.TEMP_AWS_SESSION_TOKEN }}
- name: 'Archive Performance Results'
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: 'performance-results'
path: ./wrapper/build/reports/tests/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pg_advanced_performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Clone repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Set up JDK 8'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 8
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
AWS_SESSION_TOKEN: ${{ env.TEMP_AWS_SESSION_TOKEN }}
- name: 'Archive Performance Results'
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: 'performance-results'
path: ./wrapper/build/reports/tests/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pg_performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Clone repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Set up JDK 8'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 8
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
AWS_SESSION_TOKEN: ${{ env.TEMP_AWS_SESSION_TOKEN }}
- name: 'Archive Performance Results'
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: 'performance-results'
path: ./wrapper/build/reports/tests/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release_draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Clone Repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Set up JDK 8'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 8
Expand All @@ -42,7 +42,7 @@ jobs:
echo "$RELEASE_DETAILS" > RELEASE_DETAILS.md
- name: 'Install GPG Secret Key'
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/run-autoscaling-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Clone repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Set up JDK 8'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 8
Expand Down Expand Up @@ -51,14 +51,14 @@ jobs:
AWS_SESSION_TOKEN: ${{ env.TEMP_AWS_SESSION_TOKEN }}
- name: 'Archive junit results'
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: junit-report
path: ./wrapper/build/test-results
retention-days: 5
- name: 'Archive autoscaling report'
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: autoscaling-report
path: ./wrapper/build/report
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/run-hibernate-orm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Clone repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Get changed files'
Expand All @@ -36,7 +36,7 @@ jobs:
if: ${{steps.changed-files-specific.outputs.doc_only_changed == 'false' && steps.changed-files-specific.outputs.doc_only_modified == 'false'}}
run: echo "ONLY_DOCS=false" >> $GITHUB_OUTPUT
- name: 'Set up JDK 8'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 8
Expand All @@ -46,14 +46,14 @@ jobs:
./gradlew --no-parallel --no-daemon test-hibernate-only
- name: 'Archive junit results'
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false'}}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: junit-report
path: ./wrapper/build/test-results
retention-days: 5
- name: 'Archive html summary report'
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false'}}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: html-summary-report
path: ./wrapper/build/report
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/run-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Clone repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Set up JDK 8'
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 8
Expand Down Expand Up @@ -54,14 +54,14 @@ jobs:
AWS_SESSION_TOKEN: ${{ env.TEMP_AWS_SESSION_TOKEN }}
- name: 'Archive junit results'
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: junit-report
path: ./wrapper/build/test-results
retention-days: 5
- name: 'Archive html summary report'
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: html-summary-report
path: ./wrapper/build/report
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/run-standard-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Clone repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 50
- name: 'Get changed files'
Expand All @@ -37,7 +37,7 @@ jobs:
run: echo "ONLY_DOCS=false" >> $GITHUB_OUTPUT
- name: 'Set up JDK 8'
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false'}}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 8
Expand All @@ -47,14 +47,14 @@ jobs:
./gradlew --no-parallel --no-daemon test-all-docker
- name: 'Archive junit results'
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false'}}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: junit-report
path: ./wrapper/build/test-results
retention-days: 5
- name: 'Archive html summary report'
if: ${{steps.changed-files.outputs.ONLY_DOCS && steps.changed-files.outputs.ONLY_DOCS == 'false'}}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: html-summary-report
path: ./wrapper/build/report
Expand Down

0 comments on commit cc5745c

Please sign in to comment.