mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-15 03:01:37 -05:00
Added workflow for running Comments-UI tests
refs https://github.com/TryGhost/Toolbox/issues/400 - this will run whenever the comments-ui files have changed
This commit is contained in:
parent
76f01cca23
commit
76a6a14731
1 changed files with 50 additions and 0 deletions
50
.github/workflows/comments-ui-tests.yml
vendored
Normal file
50
.github/workflows/comments-ui-tests.yml
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
name: Comments-UI Tests
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'apps/comments-ui/**'
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'v5.*'
|
||||
paths:
|
||||
- 'apps/comments-ui/**'
|
||||
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: Tests
|
||||
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
|
||||
|
||||
- run: yarn workspace @tryghost/comments-ui run test
|
||||
|
||||
- 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 }}
|
Loading…
Add table
Reference in a new issue