diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 944c0a2504..3db259e61f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -318,6 +318,42 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + test: + runs-on: ubuntu-18.04 + if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/')) + strategy: + matrix: + browser: ["Firefox", "Chrome"] + name: Admin - ${{ matrix.browser }} + env: + MOZ_HEADLESS: 1 + JOBS: 1 + CI: true + COVERAGE: true + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "14.17.0" + + - run: yarn + - run: yarn test + working-directory: ghost/admin + env: + BROWSER: ${{ matrix.browser }} + + # Merge coverage reports and upload + - run: yarn ember coverage-merge + working-directory: ghost/admin + - uses: codecov/codecov-action@v3 + + - 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 }} + canary: runs-on: ubuntu-18.04 needs: [lint, migrations, unit-tests, database-tests]