25 lines
588 B
YAML
25 lines
588 B
YAML
|
name: Test
|
||
|
on:
|
||
|
pull_request:
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
- 'renovate/*'
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
|
||
|
strategy:
|
||
|
matrix:
|
||
|
node: [ 14, 16, 18 ]
|
||
|
name: Node ${{ matrix.node }}
|
||
|
steps:
|
||
|
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||
|
- uses: actions/setup-node@v3
|
||
|
with:
|
||
|
node-version: ${{ matrix.node }}
|
||
|
- run: yarn
|
||
|
- run: yarn lint
|
||
|
- run: yarn test
|