Ghost/ghost/admin/.github/workflows/test.yml

30 lines
662 B
YAML
Raw Normal View History

name: Test Suite
on:
pull_request:
push:
branches:
- master
- 'renovate/*'
jobs:
test:
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
strategy:
matrix:
browser: [ 'Firefox', 'Chrome' ]
name: ${{ matrix.browser }}
env:
MOZ_HEADLESS: 1
JOBS: 1
CI: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
- run: yarn
- run: yarn lint:js
- run: yarn test
env:
BROWSER: ${{ matrix.browser }}