From 02db48e39688e8b1863d31b49948cfd05e4de365 Mon Sep 17 00:00:00 2001 From: Alexandru Emil Lupu Date: Thu, 10 Oct 2024 14:28:58 +0300 Subject: [PATCH] Lock Ubuntu to 22.04 in github actions (#13513) --- .github/workflows/brakeman.yml | 2 +- .github/workflows/build_app.yml | 2 +- .github/workflows/ci_backporter.yml | 2 +- .github/workflows/ci_generators.yml | 2 +- .github/workflows/ci_javascript.yml | 2 +- .github/workflows/ci_main.yml | 2 +- .github/workflows/ci_performance_metrics_monitoring.yml | 2 +- .github/workflows/ci_production_check.yml | 2 +- .github/workflows/lint_code.yml | 2 +- .github/workflows/lint_pr_format.yml | 2 +- .github/workflows/lint_pr_labels.yml | 2 +- .github/workflows/on_docs_update.yml | 2 +- .github/workflows/on_release.yml | 2 +- .github/workflows/spelling.yml | 4 ++-- .github/workflows/test_app.yml | 2 +- .../decidim/generators/component_templates/github/ci.yml.erb | 2 +- 16 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/brakeman.yml b/.github/workflows/brakeman.yml index bcfe880ca5d6..ef5d26c6f944 100644 --- a/.github/workflows/brakeman.yml +++ b/.github/workflows/brakeman.yml @@ -50,7 +50,7 @@ jobs: - decidim-system - decidim-templates - decidim-verifications - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 name: ${{ matrix.working-directory }} if: "!startsWith(github.head_ref, 'chore/l10n')" timeout-minutes: 60 diff --git a/.github/workflows/build_app.yml b/.github/workflows/build_app.yml index 00db8714f420..a718c9001bec 100644 --- a/.github/workflows/build_app.yml +++ b/.github/workflows/build_app.yml @@ -14,7 +14,7 @@ on: jobs: build_app: name: Build app - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: "!startsWith(github.head_ref, 'chore/l10n')" timeout-minutes: 60 env: diff --git a/.github/workflows/ci_backporter.yml b/.github/workflows/ci_backporter.yml index 7676d52f5c31..861869827075 100644 --- a/.github/workflows/ci_backporter.yml +++ b/.github/workflows/ci_backporter.yml @@ -14,7 +14,7 @@ env: jobs: backport: name: "Backporter" - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 60 # the below IF structure checks: # - PR repository must be the official Decidim repository ( decidim/decidim ) diff --git a/.github/workflows/ci_generators.yml b/.github/workflows/ci_generators.yml index 36616e114feb..fe7da0446d47 100644 --- a/.github/workflows/ci_generators.yml +++ b/.github/workflows/ci_generators.yml @@ -52,7 +52,7 @@ jobs: - command: bundle exec parallel_test --type rspec --pattern spec/lib/ name: Lib name: ${{ matrix.test.name }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: "!startsWith(github.head_ref, 'chore/l10n')" timeout-minutes: 60 services: diff --git a/.github/workflows/ci_javascript.yml b/.github/workflows/ci_javascript.yml index b480bcfe1a17..1944fda34f69 100644 --- a/.github/workflows/ci_javascript.yml +++ b/.github/workflows/ci_javascript.yml @@ -29,7 +29,7 @@ concurrency: jobs: main: name: Tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: "!startsWith(github.head_ref, 'chore/l10n')" timeout-minutes: 60 steps: diff --git a/.github/workflows/ci_main.yml b/.github/workflows/ci_main.yml index 3f2a47b43e88..407f0df8b255 100644 --- a/.github/workflows/ci_main.yml +++ b/.github/workflows/ci_main.yml @@ -22,7 +22,7 @@ concurrency: jobs: main: name: Tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 60 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/ci_performance_metrics_monitoring.yml b/.github/workflows/ci_performance_metrics_monitoring.yml index 16d6be47f7f7..eb17df4692e4 100644 --- a/.github/workflows/ci_performance_metrics_monitoring.yml +++ b/.github/workflows/ci_performance_metrics_monitoring.yml @@ -32,7 +32,7 @@ concurrency: jobs: main: name: Tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: "!startsWith(github.head_ref, 'chore/l10n')" timeout-minutes: 60 services: diff --git a/.github/workflows/ci_production_check.yml b/.github/workflows/ci_production_check.yml index 385d8d3dc02d..54534eccb0f6 100644 --- a/.github/workflows/ci_production_check.yml +++ b/.github/workflows/ci_production_check.yml @@ -26,7 +26,7 @@ concurrency: jobs: main: name: Tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: "!startsWith(github.head_ref, 'chore/l10n')" timeout-minutes: 60 services: diff --git a/.github/workflows/lint_code.yml b/.github/workflows/lint_code.yml index 7e7819271c64..6af2a18b8975 100644 --- a/.github/workflows/lint_code.yml +++ b/.github/workflows/lint_code.yml @@ -34,7 +34,7 @@ jobs: - ./.github/run_spelling_check.sh - npm run linthtml name: Lint code - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: "!startsWith(github.head_ref, 'chore/l10n')" timeout-minutes: 60 steps: diff --git a/.github/workflows/lint_pr_format.yml b/.github/workflows/lint_pr_format.yml index 031d2050fb19..d04ff11b2fa0 100644 --- a/.github/workflows/lint_pr_format.yml +++ b/.github/workflows/lint_pr_format.yml @@ -12,7 +12,7 @@ concurrency: jobs: check_title: name: Check PR title - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: deepakputhraya/action-pr-title@master with: diff --git a/.github/workflows/lint_pr_labels.yml b/.github/workflows/lint_pr_labels.yml index 5674f2bd411a..5a52d0524417 100644 --- a/.github/workflows/lint_pr_labels.yml +++ b/.github/workflows/lint_pr_labels.yml @@ -23,7 +23,7 @@ permissions: jobs: check_label: name: Check PR labels - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: jesusvasquez333/verify-pr-label-action@v1.4.0 with: diff --git a/.github/workflows/on_docs_update.yml b/.github/workflows/on_docs_update.yml index 79c2b264b82b..37fd32c1b30e 100644 --- a/.github/workflows/on_docs_update.yml +++ b/.github/workflows/on_docs_update.yml @@ -9,7 +9,7 @@ on: jobs: trigger_documentation_build: name: Trigger decidim/documentation build - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 60 steps: - name: Send dispatch for trigger_build workflow diff --git a/.github/workflows/on_release.yml b/.github/workflows/on_release.yml index 303f649cc1bf..22c0ffc754d2 100644 --- a/.github/workflows/on_release.yml +++ b/.github/workflows/on_release.yml @@ -6,7 +6,7 @@ on: jobs: trigger_docker_build: name: Trigger decidim/docker build - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 60 steps: - name: Send dispatch for Docker Hub build diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index 069e82a472b8..37c1c503b303 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -83,7 +83,7 @@ jobs: security-events: write outputs: followup: ${{ steps.spelling.outputs.followup }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: ${{ contains(github.event_name, 'pull_request') || github.event_name == 'push' }} concurrency: group: spelling-${{ github.event.pull_request.number || github.ref }} @@ -131,7 +131,7 @@ jobs: contents: write pull-requests: write actions: read - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: ${{ github.repository_owner != 'decidim' && github.event_name == 'issue_comment' && diff --git a/.github/workflows/test_app.yml b/.github/workflows/test_app.yml index 7560b702b879..f7ce62709e6e 100644 --- a/.github/workflows/test_app.yml +++ b/.github/workflows/test_app.yml @@ -47,7 +47,7 @@ on: jobs: build_app: name: Test - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: "!startsWith(github.head_ref, 'chore/l10n')" timeout-minutes: 60 env: diff --git a/decidim-generators/lib/decidim/generators/component_templates/github/ci.yml.erb b/decidim-generators/lib/decidim/generators/component_templates/github/ci.yml.erb index 447178ec7e87..5a9c042195c3 100644 --- a/decidim-generators/lib/decidim/generators/component_templates/github/ci.yml.erb +++ b/decidim-generators/lib/decidim/generators/component_templates/github/ci.yml.erb @@ -21,7 +21,7 @@ concurrency: jobs: main: name: Tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 30 services: postgres: