mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
chore(ci): optimize runner costs (#39214)
This commit is contained in:
6
.github/workflows/ci-frontend.yml
vendored
6
.github/workflows/ci-frontend.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
# we skip each step individually, so they are still reported as success
|
||||
# because many of them are required for CI checks to be green
|
||||
changes:
|
||||
runs-on: depot-ubuntu-24.04-small
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
name: Determine need to run frontend checks
|
||||
outputs:
|
||||
@@ -153,7 +153,7 @@ jobs:
|
||||
name: Frontend typechecking
|
||||
needs: [changes]
|
||||
if: needs.changes.outputs.frontend == 'true'
|
||||
runs-on: depot-ubuntu-24.04-8
|
||||
runs-on: depot-ubuntu-24.04-4
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -248,7 +248,7 @@ jobs:
|
||||
calculate-running-time:
|
||||
name: Calculate running time
|
||||
needs: [jest, frontend-typescript-checks, frontend-format, frontend-toolbar-checks, changes]
|
||||
runs-on: depot-ubuntu-24.04
|
||||
runs-on: ubuntu-latest
|
||||
if: # Run on pull requests to PostHog/posthog + on PostHog/posthog outside of PRs - but never on forks
|
||||
needs.changes.outputs.frontend == 'true' && (
|
||||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'PostHog/posthog') ||
|
||||
|
||||
2
.github/workflows/ci-nodejs.yml
vendored
2
.github/workflows/ci-nodejs.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
# Job to decide if we should run plugin server ci
|
||||
# See https://github.com/dorny/paths-filter#conditional-execution for more details
|
||||
changes:
|
||||
runs-on: depot-ubuntu-24.04-4
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
name: Determine need to run Node.js checks
|
||||
outputs:
|
||||
|
||||
@@ -33,3 +33,5 @@ Error: locator.click: Error: strict mode violation: locator('text=Set a billing
|
||||
1) <span class="LemonButton__content">Set a billing limit</span> aka getByTestId('billing-limit-input-wrapper-product_analytics').getByRole('button', { name: 'Set a billing limit' })
|
||||
2) <span class="LemonButton__content">Set a billing limit</span> aka getByTestId('billing-limit-input-wrapper-session_replay').getByRole('button', { name: 'Set a billing limit' })
|
||||
```
|
||||
|
||||
<!-- Test 4-core runner performance -->
|
||||
|
||||
Reference in New Issue
Block a user