From 2b64918a8c0a63e6d792e80a5450f57238f0666f Mon Sep 17 00:00:00 2001 From: Theresa Kamerman Date: Fri, 16 Feb 2024 16:50:09 -0800 Subject: [PATCH] Update GH actions to use v4 --- .github/workflows/cloc.yml | 2 +- .github/workflows/create_jnispice.yml | 10 +++--- .github/workflows/deploy-to-gh-pages.yml | 4 +-- .github/workflows/load-test.yml | 6 ++-- .github/workflows/pgcmp.yml | 40 ++++++++++++------------ .github/workflows/publish.yml | 14 ++++----- .github/workflows/security-scan.yml | 6 ++-- .github/workflows/test.yml | 18 +++++------ 8 files changed, 50 insertions(+), 50 deletions(-) diff --git a/.github/workflows/cloc.yml b/.github/workflows/cloc.yml index cb2e7e04e2..8f7a7596ab 100644 --- a/.github/workflows/cloc.yml +++ b/.github/workflows/cloc.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install cloc run: | sudo apt-get update diff --git a/.github/workflows/create_jnispice.yml b/.github/workflows/create_jnispice.yml index fd77d86be8..074e734570 100644 --- a/.github/workflows/create_jnispice.yml +++ b/.github/workflows/create_jnispice.yml @@ -20,7 +20,7 @@ jobs: 7z x JNISpice.zip echo "JNISpice unpacked" - name: Upload DLL - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Windows Spice path: JNISpice/lib/JNISpice.dll @@ -39,7 +39,7 @@ jobs: run: mv libJNISpice.so libJNISpice_Intel.so working-directory: JNISpice/lib - name: Upload .so - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: x86 Linux Spice path: JNISpice/lib/libJNISpice_Intel.so @@ -64,7 +64,7 @@ jobs: working-directory: JNISpice/src/JNISpice shell: csh {0} - name: Upload Intel Mac .jnilib - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: x86 Mac Spice path: JNISpice/lib/libJNISpice_Intel.jnilib @@ -74,7 +74,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: "19" @@ -104,7 +104,7 @@ jobs: working-directory: JNISpice/src/JNISpice - name: Upload JAR if: success() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: JNISpice Jar path: JNISpice/src/JNISpice/JNISpice-*.jar diff --git a/.github/workflows/deploy-to-gh-pages.yml b/.github/workflows/deploy-to-gh-pages.yml index 0ed6e9b49a..89e7bca55c 100644 --- a/.github/workflows/deploy-to-gh-pages.yml +++ b/.github/workflows/deploy-to-gh-pages.yml @@ -15,8 +15,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: 19 diff --git a/.github/workflows/load-test.yml b/.github/workflows/load-test.yml index e38a6987f7..2cad27cce4 100644 --- a/.github/workflows/load-test.yml +++ b/.github/workflows/load-test.yml @@ -17,9 +17,9 @@ jobs: environment: load-test steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: "19" @@ -43,7 +43,7 @@ jobs: ./load-test.sh - name: Upload Load Test Results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Load Test Results path: "**/load-tests/load-report.*" diff --git a/.github/workflows/pgcmp.yml b/.github/workflows/pgcmp.yml index 731b8009b0..b289341c97 100644 --- a/.github/workflows/pgcmp.yml +++ b/.github/workflows/pgcmp.yml @@ -28,11 +28,11 @@ jobs: environment: e2e-test steps: - name: Checkout v1.0.1 - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: "v1.0.1" - name: Clone PGCMP - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: cbbrowne/pgcmp path: pgcmp @@ -79,13 +79,13 @@ jobs: PGURI=postgres://"${AERIE_USERNAME}":"${AERIE_PASSWORD}"@localhost:5432/aerie_ui PGCMPOUTPUT=./pgdumpv1_0_1/AerieUIV1_0_1 PGCLABEL=AerieUIV1_0_1 PGBINDIR=/usr/bin ./pgcmp/pgcmp-dump shell: bash - name: Share Database Dump - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: v1_0_1-db-dump path: pgdumpv1_0_1 retention-days: 1 - name: Checkout Latest - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Restart Hasura run: | docker compose down @@ -116,7 +116,7 @@ jobs: AERIE_USERNAME: "${{secrets.AERIE_USERNAME}}" AERIE_PASSWORD: "${{secrets.AERIE_PASSWORD}}" - name: Clone PGCMP - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: cbbrowne/pgcmp path: pgcmp @@ -132,7 +132,7 @@ jobs: PGURI=postgres://"${AERIE_USERNAME}":"${AERIE_PASSWORD}"@localhost:5432/aerie_ui PGCMPOUTPUT=./pgdumpmigrated/AerieUIMigrated PGCLABEL=AerieUIMigrated PGBINDIR=/usr/bin ./pgcmp/pgcmp-dump shell: bash - name: Share Database Dump - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: migrated-db-dump path: pgdumpmigrated @@ -153,7 +153,7 @@ jobs: environment: e2e-test steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Postgres Client (psql) run: | sudo apt-get update @@ -186,7 +186,7 @@ jobs: run: sleep 60s shell: bash - name: Clone PGCMP - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: cbbrowne/pgcmp path: pgcmp @@ -202,7 +202,7 @@ jobs: PGURI=postgres://"${AERIE_USERNAME}":"${AERIE_PASSWORD}"@localhost:5432/aerie_ui PGCMPOUTPUT=./pgdumpraw/AerieUIRaw PGCLABEL=AerieUIRaw PGBINDIR=/usr/bin ./pgcmp/pgcmp-dump shell: bash - name: Share Database Dump - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: raw-sql-db-dump path: pgdumpraw @@ -232,7 +232,7 @@ jobs: PGURI=postgres://"${AERIE_USERNAME}":"${AERIE_PASSWORD}"@localhost:5432/aerie_ui PGCMPOUTPUT=./pgdumpmigrateddown/AerieUIMigratedDown PGCLABEL=AerieUIMigratedDown PGBINDIR=/usr/bin ./pgcmp/pgcmp-dump shell: bash - name: Share Database Dump - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: migrated-down-db-dump path: pgdumpmigrateddown @@ -252,9 +252,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Clone PGCMP - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: cbbrowne/pgcmp path: pgcmp @@ -268,11 +268,11 @@ jobs: run: sleep 5s shell: bash - name: Download Shared Dumps - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: migrated-db-dump path: pgcmp/pgdumpmigrated - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: raw-sql-db-dump path: pgcmp/pgdumpraw @@ -285,7 +285,7 @@ jobs: shell: bash - name: Upload Invalid if: ${{ failure() && steps.dbcmp.conclusion == 'failure' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: pgcmpresultsup path: "**/results/" @@ -305,9 +305,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Clone PGCMP - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: cbbrowne/pgcmp path: pgcmp @@ -321,11 +321,11 @@ jobs: run: sleep 5s shell: bash - name: Download Shared Dumps - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: v1_0_1-db-dump path: pgcmp/pgdumpv1_0_1 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: migrated-down-db-dump path: pgcmp/pgdumpmigrateddown @@ -340,7 +340,7 @@ jobs: shell: bash - name: Upload Invalid if: ${{ failure() && steps.dbcmp.conclusion == 'failure' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: pgcmpresultsdown path: "**/results/" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1377a3e711..8fa3e8075b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,7 +20,7 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: gradle/wrapper-validation-action@v1 @@ -63,9 +63,9 @@ jobs: file: docker/Dockerfile.postgres name: ${{ matrix.components.image }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: "temurin" java-version: "19" @@ -109,7 +109,7 @@ jobs: fi - name: Build and push ${{ matrix.components.image }} - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: context: ${{ matrix.components.context }} file: ${{ matrix.components.file }} @@ -148,7 +148,7 @@ jobs: - name: Upload ${{ matrix.image }} scan results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Vuln Scan Results path: "${{ matrix.image }}-results.html" @@ -161,7 +161,7 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Gradle Cache uses: gradle/gradle-build-action@v2 @@ -177,7 +177,7 @@ jobs: run: ./gradlew archiveDeployment - name: Publish deployment - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Deployment path: deployment.tar diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index f9f4f66441..fb6d4fd516 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -28,7 +28,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: @@ -36,7 +36,7 @@ jobs: queries: +security-extended tools: latest - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: "19" @@ -89,7 +89,7 @@ jobs: echo "RESULTS_DIR=$results_dir" >> $GITHUB_ENV - name: Upload Security Scan Results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Security Scan Results path: ${{ env.RESULTS_DIR }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fc0b0e9efd..4553f87482 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,9 +25,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: "19" @@ -41,13 +41,13 @@ jobs: run: ./gradlew test --parallel - name: Upload Test Results as XML if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Test Results path: "**/build/test-results/test" - name: Upload Test Results as HTML if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Test Results path: "**/build/reports/tests/test" @@ -57,9 +57,9 @@ jobs: environment: e2e-test steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: "19" @@ -85,19 +85,19 @@ jobs: run: ./gradlew e2eTest - name: Upload E2E Test Results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Test Results path: "**/e2e-tests/build/reports/tests/e2eTest" - name: Upload DB Test Results as HTML if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Test Results path: "**/db-tests/build/reports/tests/e2eTest" - name: Upload Sequencing Server Test Results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Test Results path: "**/sequencing-server/test-report.*"