Skip to content

Commit

Permalink
Upgrade CI to run on Ubuntu 24.04 (#1488)
Browse files Browse the repository at this point in the history
## Motivation

Ubuntu 24.04 is now available as a GH actions runner. It was supposed to
become the default soon, but has been postponed as it's breaking many
people's workflows (surprise!). Let's see whether we're ready to upgrade
right away.

## Solution

Bump the version in the `yml` files and see what happens.
  • Loading branch information
svix-jplatte authored Oct 18, 2024
2 parents df22be9 + 63d28e4 commit 3a232c7
Show file tree
Hide file tree
Showing 31 changed files with 57 additions and 52 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/bridge-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ env:
jobs:
check-fmt:
name: Check formatting
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

Expand All @@ -40,7 +40,7 @@ jobs:

test-versions:
name: Webhook Bridge CI
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
rust: [stable, beta]
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
checkinstall=1.* \
curl \
libssl-dev=* \
pkg-config=0.29.* \
pkg-config=1.8.* \
zlib1g-dev=1:*
- name: Start required services
Expand All @@ -90,7 +90,7 @@ jobs:

# deny-check:
# name: cargo-deny check
# runs-on: ubuntu-latest
# runs-on: ubuntu-24.04
# continue-on-error: ${{ matrix.checks == 'advisories' }}
# strategy:
# matrix:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/bridge-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ env:
jobs:
release:
name: release x86_64-unknown-linux-gnu
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
environment: release

strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
os: ubuntu-24.04
extension: ""

- target: aarch64-apple-darwin
Expand All @@ -43,21 +43,21 @@ jobs:

docker:
name: release docker
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Setup QEMU
uses: docker/setup-qemu-action@v2

- name: Login Docker
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Derive Version Numbers
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bridge-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:

jobs:
security_audit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/csharp-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
dotnet:
name: C# Lint
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/csharp-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
dotnet:
name: C# Release
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
environment: release

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "openapi.json"
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: golangci-lint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/java-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:
jobs:
dotnet:
name: Java Lint
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/java-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ on:
jobs:
dotnet:
name: Java Release
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
environment: release

steps:
- uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/javascript-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "openapi.json"
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/javascript-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
environment: release

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/kotlin-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:
jobs:
kotlin:
name: Kotlin Lint
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/kotlin-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ on:
jobs:
kotlin:
name: Kotlin Release
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
environment: release

steps:
- uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/other-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- name: Checkout Code
Expand All @@ -20,7 +20,7 @@ jobs:
fetch-depth: 0

- name: Lint Code Base
uses: super-linter/super-linter@v6.0.0
uses: super-linter/super-linter@v7.1.0
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
Expand Down Expand Up @@ -54,4 +54,5 @@ jobs:
VALIDATE_SHELL_SHFMT: false
VALIDATE_SQL: false
VALIDATE_SQLFLUFF: false
VALIDATE_YAML_PRETTIER: false
FILTER_REGEX_EXCLUDE: (gradlew|javascript/tsconfig.json)
2 changes: 1 addition & 1 deletion .github/workflows/php-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- '.github/workflows/php-ci.yml'
jobs:
build-test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/php-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
packagist:
name: Update Packagist
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
environment: release

steps:
Expand All @@ -18,4 +18,4 @@ jobs:
-H 'content-type: application/json' \
-d '{"repository":{"url":"https://packagist.org/packages/svix/svix"}}'
env:
PACKAGIST_API_KEY: ${{ secrets.PACKAGIST_API_KEY }}
PACKAGIST_API_KEY: ${{ secrets.PACKAGIST_API_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/python-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- ".github/workflows/python-lint.yml"
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
build:
name: Build source distribution
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
environment: release

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- ".github/workflows/python-tests.yml"
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ruby-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
dotnet:
name: Ruby Lint
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ruby-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
dotnet:
name: Ruby Release
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
environment: release

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ env:
jobs:
check-fmt:
name: Check formatting
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

Expand All @@ -40,7 +40,7 @@ jobs:

test-versions:
name: Rust Lint
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
rust: [stable, beta]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
environment: release

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:

jobs:
security_audit:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/server-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ env:
jobs:
check-fmt:
name: Check formatting
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

Expand All @@ -40,7 +40,7 @@ jobs:

test-versions:
name: Server CI
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
rust: [stable, beta]
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
run: docker compose -f "server/testing-docker-compose.yml" down
# deny-check:
# name: cargo-deny check
# runs-on: ubuntu-latest
# runs-on: ubuntu-24.04
# continue-on-error: ${{ matrix.checks == 'advisories' }}
# strategy:
# matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/server-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
test-image:
name: Server docker image CI
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand Down
Loading

0 comments on commit 3a232c7

Please sign in to comment.