mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
8c5e2a53a9
refs https://github.com/TryGhost/Toolbox/issues/594 - we're moving all the external apps into a different folder so we can keep `ghost/` for internal code
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
name: AdminX Settings Tests
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'apps/admin-x-settings/**'
|
|
push:
|
|
branches:
|
|
- main
|
|
- 'v5.*'
|
|
paths:
|
|
- 'apps/admin-x-settings/**'
|
|
env:
|
|
FORCE_COLOR: 1
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
e2e:
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
|
name: E2E
|
|
env:
|
|
CI: true
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
env:
|
|
FORCE_COLOR: 0
|
|
with:
|
|
node-version: "18.12.1"
|
|
cache: yarn
|
|
|
|
- run: yarn --prefer-offline
|
|
|
|
- name: Install Playwright
|
|
run: npx playwright install --with-deps
|
|
|
|
- run: yarn workspace @tryghost/admin-x-settings run test:e2e
|
|
|
|
- name: Upload test results
|
|
if: always()
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: playwright-report
|
|
path: playwright-report
|
|
retention-days: 30
|
|
|
|
- uses: tryghost/actions/actions/slack-build@main
|
|
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
with:
|
|
status: ${{ job.status }}
|
|
env:
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|