Skip to content

Commit

Permalink
Update Github Workflows
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Huulivoide committed Sep 5, 2024
1 parent dc87fea commit fa8fe4c
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 15 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/check-dump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-prettify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check-renovatebot-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit fa8fe4c

Please sign in to comment.