2019-11-08 00:11:30 -05:00
|
|
|
name: Test
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-03-31 10:54:56 -04:00
|
|
|
- 'renovate/*'
|
2019-11-08 00:11:30 -05:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-18.04
|
2020-03-31 10:54:56 -04:00
|
|
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
2019-11-08 00:11:30 -05:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-03-31 10:54:56 -04:00
|
|
|
node: [ 10 ]
|
2019-11-08 00:11:30 -05:00
|
|
|
name: Node ${{ matrix.node }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-03-31 10:54:56 -04:00
|
|
|
- uses: actions/setup-node@v1
|
2019-11-08 00:11:30 -05:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node }}
|
2020-03-31 10:54:56 -04:00
|
|
|
- run: yarn
|
2019-11-08 00:11:30 -05:00
|
|
|
- run: yarn test:ci
|