From 4b4df07a2ea8b849f3d3995ad23c2e7c6a384257 Mon Sep 17 00:00:00 2001 From: jidicula Date: Sun, 19 May 2024 15:38:27 -0400 Subject: [PATCH] ci(ubuntu): Add support for ubuntu-24.04 runners Resolves: https://github.com/jidicula/clang-format-action/issues/196 --- .github/workflows/shell-lint.yml | 4 ++-- .github/workflows/test-ubuntu-24.04.yml | 18 ++++++++++++++++++ README.md | 2 +- 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/test-ubuntu-24.04.yml diff --git a/.github/workflows/shell-lint.yml b/.github/workflows/shell-lint.yml index 4d42d6e..0e3a856 100644 --- a/.github/workflows/shell-lint.yml +++ b/.github/workflows/shell-lint.yml @@ -9,7 +9,7 @@ on: jobs: shellcheck: name: Run Shellcheck on shellscripts - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -21,7 +21,7 @@ jobs: needs: shellcheck env: SHFMT_VERSION: 3.0.1 - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/test-ubuntu-24.04.yml b/.github/workflows/test-ubuntu-24.04.yml new file mode 100644 index 0000000..106df91 --- /dev/null +++ b/.github/workflows/test-ubuntu-24.04.yml @@ -0,0 +1,18 @@ +name: ubuntu-24.04 Tests + +on: + push: + branches: + - main + pull_request: + +defaults: + run: + shell: bash + +jobs: + tests: + name: Tests + uses: ./.github/workflows/tests.yml + with: + runner-os: "ubuntu-24.04" diff --git a/README.md b/README.md index e2bbfd1..2ad49f3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![ubuntu-20.04 Tests](https://github.com/jidicula/clang-format-action/actions/workflows/test-ubuntu-20.04.yml/badge.svg)](https://github.com/jidicula/clang-format-action/actions/workflows/test-ubuntu-20.04.yml) [![ubuntu-22.04 Tests](https://github.com/jidicula/clang-format-action/actions/workflows/test-ubuntu-22.04.yml/badge.svg)](https://github.com/jidicula/clang-format-action/actions/workflows/test-ubuntu-22.04.yml) +[![ubuntu-20.04 Tests](https://github.com/jidicula/clang-format-action/actions/workflows/test-ubuntu-20.04.yml/badge.svg)](https://github.com/jidicula/clang-format-action/actions/workflows/test-ubuntu-20.04.yml) [![ubuntu-22.04 Tests](https://github.com/jidicula/clang-format-action/actions/workflows/test-ubuntu-22.04.yml/badge.svg)](https://github.com/jidicula/clang-format-action/actions/workflows/test-ubuntu-22.04.yml) [![ubuntu-24.04 Tests](https://github.com/jidicula/clang-format-action/actions/workflows/test-ubuntu-24.04.yml/badge.svg)](https://github.com/jidicula/clang-format-action/actions/workflows/test-ubuntu-24.04.yml) [![shell-lint](https://github.com/jidicula/clang-format-action/workflows/shell-lint/badge.svg?branch=main)](https://github.com/jidicula/clang-format-action/actions?query=workflow%3Ashell-lint+branch%3Amain)