2020-04-06 14:41:11 +03:00
|
|
|
# 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.
|
|
|
|
|
2020-02-14 13:35:02 +03:00
|
|
|
name: Test Suite
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-03-26 12:46:05 +03:00
|
|
|
- 'renovate/*'
|
2020-02-14 13:35:02 +03:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
2020-03-26 12:46:05 +03:00
|
|
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
2020-02-14 13:35:02 +03:00
|
|
|
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 }}
|