0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Updated CI runners to Ubuntu 22.04

refs https://github.com/actions/runner-images/issues/6002

- Ubuntu 18.04 is now deprecated in GHA
- this commit moves all tests onto 22.04 except the Admin integration
  tests because they're failing to pick Firefox up
- I can look into this after we've unblocked CI
This commit is contained in:
Daniel Lockyer 2022-08-22 15:17:00 +02:00 committed by Daniel Lockyer
parent 8b8fa76cc7
commit 60b8cb1a30
2 changed files with 8 additions and 8 deletions

View file

@ -4,7 +4,7 @@ on:
types: [opened, reopened]
jobs:
automate:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
if: github.repository_owner == 'TryGhost'
env:
FORCE_COLOR: 1

View file

@ -15,7 +15,7 @@ concurrency:
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
name: Lint
steps:
@ -36,7 +36,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
admin-prod-build:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
name: Admin - Production Build
steps:
@ -56,7 +56,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
admin-tests:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
strategy:
matrix:
@ -91,7 +91,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
migrations:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ghost/core
@ -164,7 +164,7 @@ jobs:
- run: yarn knex-migrator migrate --force
unit-tests:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
strategy:
matrix:
@ -192,7 +192,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
database-tests:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ghost/core
@ -304,7 +304,7 @@ jobs:
ghost-cli:
name: Ghost-CLI
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with: