diff --git a/.github/workflows/backend-api-tests.yml b/.github/workflows/backend-api-tests.yml index 71fb809fb..9db6d4959 100644 --- a/.github/workflows/backend-api-tests.yml +++ b/.github/workflows/backend-api-tests.yml @@ -11,17 +11,19 @@ on: env: GITHUB_WORKFLOW: github_actions + PYTHON_VERSION: "3.12" + UBUNTU_VERSION: "ubuntu-24.04" jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ env.UBUNTU_VERSION }} env: backend-directory: ./backend strategy: max-parallel: 4 matrix: - python-version: ["3.11"] + python-version: ["${{ env.PYTHON_VERSION }}"] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/backend-coverage.yaml b/.github/workflows/backend-coverage.yaml index 9d615ff1f..15d2f7350 100644 --- a/.github/workflows/backend-coverage.yaml +++ b/.github/workflows/backend-coverage.yaml @@ -8,16 +8,19 @@ on: env: GITHUB_WORKFLOW: github_actions + POSTGRES_VERSION: "16" + UBUNTU_VERSION: "ubuntu-24.04" + PYTHON_VERSION: "3.12" jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ env.UBUNTU_VERSION }} env: backend-directory: ./backend services: postgres: - image: postgres:14.1 + image: postgres:${{ env.POSTGRES_VERSION }} env: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres # test credential @@ -28,7 +31,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ["3.11"] + python-version: ["${{ env.PYTHON_VERSION }}"] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/backend-linters.yaml b/.github/workflows/backend-linters.yaml index 31d0a1dd4..f18a733d7 100644 --- a/.github/workflows/backend-linters.yaml +++ b/.github/workflows/backend-linters.yaml @@ -7,17 +7,19 @@ on: env: GITHUB_WORKFLOW: github_actions + PYTHON_VERSION: "3.12" + UBUNTU_VERSION: "ubuntu-24.04" jobs: ruff: - runs-on: ubuntu-latest + runs-on: ${{ env.UBUNTU_VERSION }} env: working-directory: ./backend strategy: max-parallel: 4 matrix: - python-version: ["3.11"] + python-version: ["${{ env.PYTHON_VERSION }}"] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/backend-migrations-check.yaml b/.github/workflows/backend-migrations-check.yaml index 049de81e1..76fb6b44d 100644 --- a/.github/workflows/backend-migrations-check.yaml +++ b/.github/workflows/backend-migrations-check.yaml @@ -11,15 +11,17 @@ env: backend-directory: ./backend enterprise-backend-directory: ./enterprise/backend enterprise-backend-settings-module: enterprise_core.settings + UBUNTU_VERSION: "ubuntu-24.04" + PYTHON_VERSION: "3.12" jobs: migrations-check: - runs-on: ubuntu-20.04 + runs-on: ${{ env.UBUNTU_VERSION }} strategy: max-parallel: 4 matrix: - python-version: ["3.11"] + python-version: ["${{ env.PYTHON_VERSION }}"] steps: - uses: actions/checkout@v4 @@ -58,12 +60,12 @@ jobs: poetry run python manage.py makemigrations --check --dry-run --verbosity=3 enterprise-migrations-check: - runs-on: ubuntu-20.04 + runs-on: ${{ env.UBUNTU_VERSION }} strategy: max-parallel: 4 matrix: - python-version: ["3.11"] + python-version: ["${{ env.PYTHON_VERSION }}"] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/docker-build-and-push-ee.yml b/.github/workflows/docker-build-and-push-ee.yml index 16e178e01..0062393c0 100644 --- a/.github/workflows/docker-build-and-push-ee.yml +++ b/.github/workflows/docker-build-and-push-ee.yml @@ -6,9 +6,12 @@ on: - "v*" workflow_dispatch: +env: + UBUNTU_VERSION: "ubuntu-24.04" + jobs: build-and-push: - runs-on: ubuntu-latest + runs-on: ${{ env.UBUNTU_VERSION }} permissions: contents: read packages: write diff --git a/.github/workflows/docker-build-and-push.yml b/.github/workflows/docker-build-and-push.yml index 8d1a71e44..4f3682f09 100644 --- a/.github/workflows/docker-build-and-push.yml +++ b/.github/workflows/docker-build-and-push.yml @@ -6,9 +6,12 @@ on: - "v*" workflow_dispatch: +env: + UBUNTU_VERSION: "ubuntu-24.04" + jobs: build-and-push: - runs-on: ubuntu-latest + runs-on: ${{ env.UBUNTU_VERSION }} permissions: contents: read packages: write diff --git a/.github/workflows/frontend-coverage.yaml b/.github/workflows/frontend-coverage.yaml index 129f34ba3..68668dae7 100644 --- a/.github/workflows/frontend-coverage.yaml +++ b/.github/workflows/frontend-coverage.yaml @@ -8,17 +8,19 @@ on: env: GITHUB_WORKFLOW: github_actions + UBUNTU_VERSION: "ubuntu-24.04" + NODE_VERSION: "22" jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ env.UBUNTU_VERSION }} env: working-directory: ./frontend strategy: max-parallel: 4 matrix: - node-version: ["20"] + node-version: ["${{ env.NODE_VERSION }}"] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/frontend-linters.yaml b/.github/workflows/frontend-linters.yaml index 2123fb8d4..e5015b6d3 100644 --- a/.github/workflows/frontend-linters.yaml +++ b/.github/workflows/frontend-linters.yaml @@ -7,10 +7,12 @@ on: env: GITHUB_WORKFLOW: github_actions + UBUNTU_VERSION: "ubuntu-24.04" + NODE_VERSION: "22" jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ env.UBUNTU_VERSION }} env: working-directory: ./frontend PUBLIC_BACKEND_API_URL: "http://127.0.0.1:8000/api" @@ -18,7 +20,7 @@ jobs: strategy: max-parallel: 4 matrix: - node-version: ["20"] + node-version: ["${{ env.NODE_VERSION }}"] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/frontend-unit-tests.yml b/.github/workflows/frontend-unit-tests.yml index d82135c5f..163aedca5 100644 --- a/.github/workflows/frontend-unit-tests.yml +++ b/.github/workflows/frontend-unit-tests.yml @@ -7,17 +7,19 @@ on: env: GITHUB_WORKFLOW: github_actions + UBUNTU_VERSION: "ubuntu-24.04" + NODE_VERSION: "22" jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ env.UBUNTU_VERSION }} env: working-directory: ./frontend strategy: max-parallel: 4 matrix: - node-version: ["20"] + node-version: ["${{ env.NODE_VERSION }}"] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index c28629ba8..7986a906f 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -16,14 +16,17 @@ env: enterprise-frontend-build-directory: ./enterprise/frontend/.build/frontend enterprise-backend-settings-module: enterprise_core.settings DEBUG: pw:webserver + POSTGRES_VERSION: "16" + UBUNTU_VERSION: "ubuntu-24.04" + PYTHON_VERSION: "3.12" jobs: functional-tests: - runs-on: ubuntu-20.04 + runs-on: ${{ env.UBUNTU_VERSION }} services: postgres: - image: postgres:14.1 + image: postgres:${{ env.POSTGRES_VERSION }} env: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres # test credential @@ -37,7 +40,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ["3.11"] + python-version: ["${{ env.PYTHON_VERSION }}"] playwright-browser: ["chromium"] steps: @@ -124,11 +127,11 @@ jobs: retention-days: 5 enterprise-functional-tests: - runs-on: ubuntu-20.04 + runs-on: ${{ env.UBUNTU_VERSION }} services: postgres: - image: postgres:14.12 + image: postgres:${{ env.POSTGRES_VERSION }} env: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres @@ -142,7 +145,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ["3.11"] + python-version: ["${{ env.PYTHON_VERSION }}"] playwright-browser: ["chromium"] steps: diff --git a/.github/workflows/startup-tests.yml b/.github/workflows/startup-tests.yml index 81d4a12f7..21466a496 100644 --- a/.github/workflows/startup-tests.yml +++ b/.github/workflows/startup-tests.yml @@ -111,7 +111,7 @@ jobs: retention-days: 5 startup-docker-compose-test: - runs-on: ubuntu-24.04 + runs-on: ${{ env.UBUNTU_VERSION }} env: COMPOSE_TEST: True steps: @@ -158,11 +158,11 @@ jobs: fi enterprise-startup-functional-test: - runs-on: ubuntu-24.04 + runs-on: ${{ env.UBUNTU_VERSION }} services: postgres: - image: postgres:16 + image: postgres:${{ env.POSTGRES_VERSION }} env: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres @@ -173,7 +173,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ["3.12"] + python-version: ["${{ env.PYTHON_VERSION }}"] steps: - uses: actions/checkout@v4 @@ -249,7 +249,7 @@ jobs: retention-days: 5 enterprise-startup-docker-compose-test: - runs-on: ubuntu-24.04 + runs-on: ${{ env.UBUNTU_VERSION }} env: COMPOSE_TEST: True steps: diff --git a/.github/workflows/version-change-check.yml b/.github/workflows/version-change-check.yml index 50c039521..cff227461 100644 --- a/.github/workflows/version-change-check.yml +++ b/.github/workflows/version-change-check.yml @@ -1,11 +1,16 @@ name: Version change checker + on: pull_request: branches: [main] types: [opened] + +env: + UBUNTU_VERSION: "ubuntu-24.04" + jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ env.UBUNTU_VERSION }} steps: - name: Checkout code uses: actions/checkout@v3