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