From fa8fe4c6d87e30a620146ad7e9f979dc98dda1d4 Mon Sep 17 00:00:00 2001 From: Jesse Jaara Date: Thu, 5 Sep 2024 13:16:04 +0300 Subject: [PATCH] Update Github Workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Run on Ubuntu 24.04 or 22.04 for tasks requiring e2e env * Update docker/setup-qemu-action 2 → 3 * Update docker/setup-buildx-action 2 → 3 * Update docker/login-action 2 → 3 * Update actions/checkout 3 → 4 --- .github/workflows/cd.yml | 23 +++++++++++++------ .github/workflows/check-dump.yml | 5 +++- .github/workflows/check-prettify.yml | 4 ++-- .../workflows/check-renovatebot-config.yml | 6 ++--- .github/workflows/ci.yml | 4 ++-- 5 files changed, 27 insertions(+), 15 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index e2c18fed..7358dbbb 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -23,25 +23,25 @@ jobs: - check-prettify - run-docker-image-tests name: Build & Push docker image to Docker Hub - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Extract metadata to env variables uses: HSLdevcom/jore4-tools/github-actions/extract-metadata@extract-metadata-v1 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 with: platforms: 'arm64' - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.JORE4_DOCKERHUB_USER }} password: ${{ secrets.JORE4_DOCKERHUB_TOKEN }} @@ -96,6 +96,9 @@ jobs: - run-docker-image-tests - push_to_registry name: Run migration tests + # These must run on ubuntu 22.04 or older. + # The MS SQL server used by jore4-jore3-importer, + # does not run on Linux kernels newer than 6.6.x. runs-on: ubuntu-22.04 strategy: @@ -104,7 +107,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Extract metadata to env variables uses: HSLdevcom/jore4-tools/github-actions/extract-metadata@extract-metadata-v1 @@ -124,6 +127,9 @@ jobs: - run-docker-image-tests - push_to_registry name: Run hasura integration tests + # These must run on ubuntu 22.04 or older. + # The MS SQL server used by jore4-jore3-importer, + # does not run on Linux kernels newer than 6.6.x. runs-on: ubuntu-22.04 strategy: @@ -136,7 +142,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Extract metadata to env variables uses: HSLdevcom/jore4-tools/github-actions/extract-metadata@extract-metadata-v1 @@ -161,6 +167,9 @@ jobs: - run_migration_tests - run_integration_tests name: Run e2e tests + # These must run on ubuntu 22.04 or older. + # The MS SQL server used by jore4-jore3-importer, + # does not run on Linux kernels newer than 6.6.x. runs-on: ubuntu-22.04 steps: diff --git a/.github/workflows/check-dump.yml b/.github/workflows/check-dump.yml index ce6758df..ed4fc8ae 100644 --- a/.github/workflows/check-dump.yml +++ b/.github/workflows/check-dump.yml @@ -6,11 +6,14 @@ on: jobs: check_dumps: name: Check if the generated dumps are up to date + # These must run on ubuntu 22.04 or older. + # The MS SQL server used by jore4-jore3-importer, + # does not run on Linux kernels newer than 6.6.x. runs-on: ubuntu-22.04 steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Extract metadata to env variables uses: HSLdevcom/jore4-tools/github-actions/extract-metadata@extract-metadata-v1 diff --git a/.github/workflows/check-prettify.yml b/.github/workflows/check-prettify.yml index fb072ac7..247ab614 100644 --- a/.github/workflows/check-prettify.yml +++ b/.github/workflows/check-prettify.yml @@ -8,11 +8,11 @@ on: jobs: check_prettify: name: Check if sources have been prettified - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Prettify sources run: ./scripts/prettify.sh diff --git a/.github/workflows/check-renovatebot-config.yml b/.github/workflows/check-renovatebot-config.yml index 0f182291..8d189ee7 100644 --- a/.github/workflows/check-renovatebot-config.yml +++ b/.github/workflows/check-renovatebot-config.yml @@ -6,12 +6,12 @@ on: jobs: validate: name: Validate renovatebot config - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Validate - uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.3 + uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.1.0 with: config_file_path: .github/renovate.json5 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1e69515..9e3524df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,11 +8,11 @@ on: jobs: run_tests: name: Run docker image tests - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run tests run: |