Skip to content

Commit

Permalink
Update GH actions to use v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythicaeda committed Feb 20, 2024
1 parent 3300429 commit 5dd1f4b
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cloc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/create_jnispice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/deploy-to-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/load-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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.*"
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/pgcmp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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/"
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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/"
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: gradle/wrapper-validation-action@v1

Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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
6 changes: 3 additions & 3 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-extended
tools: latest
- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "19"
Expand Down Expand Up @@ -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 }}
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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.*"
Expand Down

0 comments on commit 5dd1f4b

Please sign in to comment.