Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 40 additions & 40 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ concurrency:
jobs:
job_setup:
name: Setup
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 15
env:
IS_MAIN: ${{ github.ref == 'refs/heads/main' }}
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
echo "$EOF" >> "$GITHUB_ENV"

- name: Nx cache
uses: actions/cache@v4
uses: useblacksmith/cache@v5
id: cache_nx
with:
path: .nxcache
Expand All @@ -165,15 +165,15 @@ jobs:
nx-Linux

- name: Check dependency cache
uses: actions/cache@v4
uses: useblacksmith/cache@v5
id: cache_dependencies
with:
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
key: ${{ env.cachekey }}
restore-keys: ${{ env.IS_MAIN == 'false' && env.DEPENDENCY_CACHE_RESTORE_KEYS || 'dep-never-restore'}}

- name: Set up Node
uses: actions/setup-node@v4
uses: useblacksmith/setup-node@v5
env:
FORCE_COLOR: 0
with:
Expand Down Expand Up @@ -202,15 +202,15 @@ jobs:
dependency_cache_key: ${{ env.cachekey }}

job_lint:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: [job_setup]
if: needs.job_setup.outputs.changed_any_code == 'true'
name: Lint
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1000
- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
env:
FORCE_COLOR: 0
with:
Expand All @@ -221,7 +221,7 @@ jobs:
env:
DEPENDENCY_CACHE_KEY: ${{ needs.job_setup.outputs.dependency_cache_key }}

- uses: actions/cache@v4
- uses: useblacksmith/cache@v5
with:
path: ghost/**/.eslintcache
key: eslint-cache
Expand All @@ -236,7 +236,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

job_i18n:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: [job_setup]
name: i18n
if: |
Expand All @@ -247,7 +247,7 @@ jobs:
|| needs.job_setup.outputs.changed_core == 'true'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
with:
node-version: ${{ env.NODE_VERSION }}

Expand All @@ -260,7 +260,7 @@ jobs:
run: yarn nx run @tryghost/i18n:test

job_admin-tests:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: [job_setup]
if: needs.job_setup.outputs.changed_admin == 'true'
name: Admin tests - Chrome
Expand All @@ -271,7 +271,7 @@ jobs:
COVERAGE: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
with:
node-version: ${{ env.NODE_VERSION }}

Expand Down Expand Up @@ -304,7 +304,7 @@ jobs:
name: Browser tests
timeout-minutes: 60
runs-on:
labels: ubuntu-latest
labels: blacksmith-4vcpu-ubuntu-2404
needs: [job_setup]
if: needs.job_setup.outputs.changed_any_code == 'true' && (needs.job_setup.outputs.is_main == 'true' || needs.job_setup.outputs.has_browser_tests_label == 'true')
concurrency:
Expand All @@ -323,7 +323,7 @@ jobs:
echo "If so, please re-open the PR from a branch in the upstream TryGhost/Ghost repository."
exit 1
fi
- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
env:
FORCE_COLOR: 0
with:
Expand Down Expand Up @@ -376,15 +376,15 @@ jobs:

job_perf-tests:
runs-on:
labels: ubuntu-latest-4-cores
labels: blacksmith-4vcpu-ubuntu-2404
needs: [job_setup]
if: needs.job_setup.outputs.changed_core == 'true' && needs.job_setup.outputs.is_main == 'true'
name: Performance tests
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
env:
FORCE_COLOR: 0
with:
Expand Down Expand Up @@ -426,7 +426,7 @@ jobs:
auto-push: true

job_unit-tests:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: [job_setup]
if: needs.job_setup.outputs.changed_any_code == 'true'
strategy:
Expand All @@ -437,7 +437,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 1000
- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
env:
FORCE_COLOR: 0
with:
Expand Down Expand Up @@ -473,7 +473,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

job_acceptance-tests:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: [job_setup]
if: needs.job_setup.outputs.changed_core == 'true'
strategy:
Expand All @@ -493,7 +493,7 @@ jobs:
name: Acceptance tests (Node ${{ matrix.node }}, ${{ matrix.env.DB }})
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
env:
FORCE_COLOR: 0
with:
Expand Down Expand Up @@ -606,7 +606,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

job_legacy-tests:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: [job_setup]
if: needs.job_setup.outputs.changed_core == 'true'
strategy:
Expand All @@ -628,7 +628,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
env:
FORCE_COLOR: 0
with:
Expand Down Expand Up @@ -672,15 +672,15 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

job_admin_x_settings:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: [job_setup]
if: needs.job_setup.outputs.changed_admin_x_settings == 'true'
name: Admin-X Settings tests
env:
CI: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
env:
FORCE_COLOR: 0
with:
Expand Down Expand Up @@ -712,15 +712,15 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

job_admin_x_activitypub:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: [job_setup]
if: needs.job_setup.outputs.changed_admin_x_activitypub == 'true'
name: ActivityPub tests
env:
CI: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
env:
FORCE_COLOR: 0
with:
Expand Down Expand Up @@ -752,15 +752,15 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

job_comments_ui:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: [job_setup]
if: needs.job_setup.outputs.changed_comments_ui == 'true'
name: Comments-UI tests
env:
CI: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
env:
FORCE_COLOR: 0
with:
Expand Down Expand Up @@ -792,15 +792,15 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

job_signup_form:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: [job_setup]
if: needs.job_setup.outputs.changed_signup_form == 'true'
name: Signup-form tests
env:
CI: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
env:
FORCE_COLOR: 0
with:
Expand Down Expand Up @@ -833,7 +833,7 @@ jobs:

job_tinybird_forward:
name: Tinybird Tests (Forward)
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: [job_setup]
if: needs.job_setup.outputs.changed_tinybird_forward == 'true'
env:
Expand Down Expand Up @@ -862,13 +862,13 @@ jobs:
name: Ghost-CLI tests
needs: [job_setup]
if: needs.job_setup.outputs.changed_core == 'true'
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: actions/setup-node@v4
- uses: useblacksmith/setup-node@v5
env:
FORCE_COLOR: 0
with:
Expand All @@ -893,7 +893,7 @@ jobs:
working-directory: ghost/core

- name: Switch back to Node v16.14.0 (for v4)
uses: actions/setup-node@v4
uses: useblacksmith/setup-node@v5
env:
FORCE_COLOR: 0
with:
Expand All @@ -906,7 +906,7 @@ jobs:
ghost install v4 --local -d $DIR

- name: Switch back to ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
uses: useblacksmith/setup-node@v5
env:
FORCE_COLOR: 0
with:
Expand Down Expand Up @@ -953,7 +953,7 @@ jobs:
job_acceptance-tests,
job_unit-tests
]
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -1012,7 +1012,7 @@ jobs:
job_tinybird_forward
]
if: always()
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Output needs
run: echo "${{ toJson(needs) }}"
Expand All @@ -1028,7 +1028,7 @@ jobs:
job_required_tests
]
name: Canary
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
if: |
always()
&& needs.job_setup.result == 'success'
Expand Down Expand Up @@ -1074,7 +1074,7 @@ jobs:
job_unit-tests
]
name: Publish ${{ matrix.package_name }}
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
if: always() && needs.job_setup.result == 'success' && needs.job_lint.result == 'success' && needs.job_unit-tests.result == 'success' && needs.job_setup.outputs.is_main == 'true'
strategy:
matrix:
Expand All @@ -1098,7 +1098,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
uses: useblacksmith/setup-node@v5
with:
node-version: ${{ env.NODE_VERSION }}

Expand Down Expand Up @@ -1171,7 +1171,7 @@ jobs:

deploy_tinybird_forward:
name: Deploy Tinybird (Forward)
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
needs: [
job_setup,
job_tinybird_forward
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions:
contents: write
jobs:
create-branch:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- run: echo "BASE_REF=main" >> $GITHUB_ENV
if: inputs.base-ref == 'latest'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:

jobs:
action:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
if: github.repository_owner == 'TryGhost'
steps:
- uses: tryghost/actions/actions/label-actions@main
2 changes: 1 addition & 1 deletion .github/workflows/migration-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- 'ghost/core/core/server/data/migrations/versions/**'
jobs:
createComment:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
if: github.repository_owner == 'TryGhost'
name: Add migration review requirements
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
stale:
if: github.repository_owner == 'TryGhost'
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/stale@v8
with:
Expand Down
Loading
Loading