From 15ec95a5a4745d8926c291527275cae897ad5a92 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Mon, 14 Apr 2025 00:02:24 +0800 Subject: [PATCH] chore: bump to `ubuntu-24.04` as latest ubuntu image --- .github/workflows/deploy-apidocs.yml | 2 +- .github/workflows/deploy-distributables.yml | 8 ++++---- .github/workflows/label-add-conflict-all-pr.yml | 2 +- .github/workflows/reusable-coveralls.yml | 2 +- .github/workflows/reusable-phpunit-test.yml | 9 ++++++--- .github/workflows/reusable-serviceless-phpunit-test.yml | 2 +- .github/workflows/test-coding-standards.yml | 2 +- .github/workflows/test-deptrac.yml | 2 +- .github/workflows/test-file-permissions.yml | 2 +- .github/workflows/test-phpstan.yml | 2 +- .github/workflows/test-phpunit.yml | 2 +- .github/workflows/test-rector.yml | 2 +- .github/workflows/test-scss.yml | 2 +- .github/workflows/test-userguide.yml | 2 +- 14 files changed, 22 insertions(+), 19 deletions(-) diff --git a/.github/workflows/deploy-apidocs.yml b/.github/workflows/deploy-apidocs.yml index ca77c6a08c26..2a431b2b4a73 100644 --- a/.github/workflows/deploy-apidocs.yml +++ b/.github/workflows/deploy-apidocs.yml @@ -20,7 +20,7 @@ jobs: permissions: contents: write if: github.repository == 'codeigniter4/CodeIgniter4' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Setup credentials diff --git a/.github/workflows/deploy-distributables.yml b/.github/workflows/deploy-distributables.yml index 7c0b4e4dd1ce..9aa0fab38677 100644 --- a/.github/workflows/deploy-distributables.yml +++ b/.github/workflows/deploy-distributables.yml @@ -12,7 +12,7 @@ permissions: jobs: check-version: name: Check for updated version - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout @@ -38,7 +38,7 @@ jobs: # Allow actions/github-script to create release contents: write if: github.repository == 'codeigniter4/CodeIgniter4' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 needs: check-version steps: @@ -88,7 +88,7 @@ jobs: # Allow actions/github-script to create release contents: write if: github.repository == 'codeigniter4/CodeIgniter4' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 needs: check-version steps: @@ -138,7 +138,7 @@ jobs: # Allow actions/github-script to create release contents: write if: github.repository == 'codeigniter4/CodeIgniter4' - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 needs: check-version steps: diff --git a/.github/workflows/label-add-conflict-all-pr.yml b/.github/workflows/label-add-conflict-all-pr.yml index e83e4daf0b99..c93cdccfe1f2 100644 --- a/.github/workflows/label-add-conflict-all-pr.yml +++ b/.github/workflows/label-add-conflict-all-pr.yml @@ -14,7 +14,7 @@ jobs: contents: read pull-requests: write - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/reusable-coveralls.yml b/.github/workflows/reusable-coveralls.yml index b3fcd09484fc..9b62cee22672 100644 --- a/.github/workflows/reusable-coveralls.yml +++ b/.github/workflows/reusable-coveralls.yml @@ -10,7 +10,7 @@ on: jobs: coveralls: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout base branch for PR diff --git a/.github/workflows/reusable-phpunit-test.yml b/.github/workflows/reusable-phpunit-test.yml index cf23be58f2bc..e15bf37f4bcf 100644 --- a/.github/workflows/reusable-phpunit-test.yml +++ b/.github/workflows/reusable-phpunit-test.yml @@ -61,7 +61,7 @@ env: jobs: tests: name: ${{ inputs.job-name }} - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 # Service containers cannot be extracted to caller workflows yet services: @@ -138,13 +138,16 @@ jobs: steps: - name: Create database for MSSQL Server if: ${{ inputs.db-platform == 'SQLSRV' }} - run: sqlcmd -S 127.0.0.1 -U sa -P 1Secure*Password1 -Q "CREATE DATABASE test COLLATE Latin1_General_100_CS_AS_SC_UTF8" + run: | + sudo apt-get install -y mssql-tools18 unixodbc-dev + sudo ln -sfn /opt/mssql-tools18/bin/sqlcmd /usr/bin/sqlcmd + sqlcmd -S 127.0.0.1 -U sa -P 1Secure*Password1 -Q "CREATE DATABASE test COLLATE Latin1_General_100_CS_AS_SC_UTF8" -C - name: Install latest ImageMagick if: ${{ contains(inputs.extra-extensions, 'imagick') }} run: | sudo apt-get update - sudo apt-get install --reinstall libgs9-common fonts-noto-mono libgs9:amd64 libijs-0.35:amd64 fonts-urw-base35 ghostscript poppler-data libjbig2dec0:amd64 libopenjp2-7:amd64 fonts-droid-fallback fonts-dejavu-core + sudo apt-get install --reinstall libgs-common fonts-noto-mono libgs10:amd64 libijs-0.35:amd64 fonts-urw-base35 ghostscript poppler-data libjbig2dec0:amd64 libopenjp2-7:amd64 fonts-droid-fallback fonts-dejavu-core sudo apt-get install -y gsfonts libmagickwand-dev imagemagick sudo apt-get install --fix-broken diff --git a/.github/workflows/reusable-serviceless-phpunit-test.yml b/.github/workflows/reusable-serviceless-phpunit-test.yml index 25080164320b..b4dde6dd8fc6 100644 --- a/.github/workflows/reusable-serviceless-phpunit-test.yml +++ b/.github/workflows/reusable-serviceless-phpunit-test.yml @@ -49,7 +49,7 @@ on: jobs: tests: name: ${{ inputs.job-name }} - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Install latest ImageMagick diff --git a/.github/workflows/test-coding-standards.yml b/.github/workflows/test-coding-standards.yml index 75fbabf2f14a..0b5932892fbb 100644 --- a/.github/workflows/test-coding-standards.yml +++ b/.github/workflows/test-coding-standards.yml @@ -22,7 +22,7 @@ permissions: jobs: lint: name: PHP ${{ matrix.php-version }} Lint with PHP CS Fixer - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false diff --git a/.github/workflows/test-deptrac.yml b/.github/workflows/test-deptrac.yml index d96f8f27ef00..430c904d2b2d 100644 --- a/.github/workflows/test-deptrac.yml +++ b/.github/workflows/test-deptrac.yml @@ -34,7 +34,7 @@ permissions: jobs: build: name: Architectural Inspection - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout base branch for PR if: github.event_name == 'pull_request' diff --git a/.github/workflows/test-file-permissions.yml b/.github/workflows/test-file-permissions.yml index e6ad5949d8b4..4b9ee5de63ca 100644 --- a/.github/workflows/test-file-permissions.yml +++ b/.github/workflows/test-file-permissions.yml @@ -14,7 +14,7 @@ permissions: jobs: permission-check: name: Check File Permission - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout diff --git a/.github/workflows/test-phpstan.yml b/.github/workflows/test-phpstan.yml index b5e93d699063..291843ddd73f 100644 --- a/.github/workflows/test-phpstan.yml +++ b/.github/workflows/test-phpstan.yml @@ -41,7 +41,7 @@ permissions: jobs: build: name: PHP ${{ matrix.php-versions }} Static Analysis - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false steps: diff --git a/.github/workflows/test-phpunit.yml b/.github/workflows/test-phpunit.yml index 62a8ab0e4338..f48c4346731b 100644 --- a/.github/workflows/test-phpunit.yml +++ b/.github/workflows/test-phpunit.yml @@ -41,7 +41,7 @@ jobs: # in the caller workflow are not propagated to the called workflow. coverage-php-version: name: Setup PHP Version for Code Coverage - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 outputs: version: ${{ steps.coverage-php-version.outputs.version }} steps: diff --git a/.github/workflows/test-rector.yml b/.github/workflows/test-rector.yml index f1a81bd170bf..d021165da4c3 100644 --- a/.github/workflows/test-rector.yml +++ b/.github/workflows/test-rector.yml @@ -41,7 +41,7 @@ permissions: jobs: build: name: PHP ${{ matrix.php-versions }} Analyze code (Rector) - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: diff --git a/.github/workflows/test-scss.yml b/.github/workflows/test-scss.yml index e93455d3a050..09ce42b5fc20 100644 --- a/.github/workflows/test-scss.yml +++ b/.github/workflows/test-scss.yml @@ -29,7 +29,7 @@ permissions: jobs: build: name: Compilation of SCSS (Dart Sass) - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout diff --git a/.github/workflows/test-userguide.yml b/.github/workflows/test-userguide.yml index f1e0d0bd60e6..db6bafba5544 100644 --- a/.github/workflows/test-userguide.yml +++ b/.github/workflows/test-userguide.yml @@ -20,7 +20,7 @@ permissions: jobs: syntax_check: name: Check User Guide syntax - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout