mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
4f8e9b9bd8
no issue - setup-node was randomly failing to download because of an upstream Node issue - this commit switches to using the build in Node version
35 lines
896 B
YAML
35 lines
896 B
YAML
# This test uses a single version of Node.js, the one installed by
|
|
# default on GitHub Actions. You can see this here:
|
|
#
|
|
# https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1804-README.md
|
|
#
|
|
# They may update it when a new LTS is released, so it's important
|
|
# to keep this in mind.
|
|
|
|
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
|
|
- run: yarn
|
|
- run: yarn lint:js
|
|
- run: yarn test
|
|
env:
|
|
BROWSER: ${{ matrix.browser }}
|