Removed Admin production build test

- this was originally added because we had an issue with a production
  build of Admin during a release
- since then, we've got a canary build that runs for every commit on
  `main`
- I think this test is superfluous now, so this commit removes it and
  saves ~6 mins of CI time per commit
This commit is contained in:
Daniel Lockyer 2022-08-31 11:18:24 +01:00
parent 6483a068d4
commit f04666ef52
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD

View File

@ -35,26 +35,6 @@ jobs:
env: env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
admin-prod-build:
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:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "14.17.0"
- run: yarn
- run: yarn workspace ghost-admin run build:prod
- uses: daniellockyer/action-slack-build@master
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
status: ${{ job.status }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
admin-tests: admin-tests:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/')) if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
@ -361,7 +341,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
canary: canary:
needs: [lint, ghost-cli, admin-tests, admin-prod-build, migrations, unit-tests, database-tests] needs: [lint, ghost-cli, admin-tests, migrations, unit-tests, database-tests]
if: github.event_name == 'push' && github.ref == 'refs/heads/main' if: github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Canary name: Canary
uses: tryghost/actions/.github/workflows/canary.yml@main uses: tryghost/actions/.github/workflows/canary.yml@main