1 | name: Node CI
|
2 |
|
3 | on:
|
4 | push:
|
5 | branches:
|
6 | - refs/pull/*
|
7 | pull_request:
|
8 |
|
9 | jobs:
|
10 | build:
|
11 | runs-on: ubuntu-latest
|
12 | strategy:
|
13 | matrix:
|
14 | node-version: [10, 12]
|
15 | steps:
|
16 | - uses: actions/checkout@v2
|
17 | - uses: actions/setup-node@v1
|
18 | with:
|
19 | node-version: ${{ matrix.node-version }}
|
20 | - run: yarn install
|
21 | - run: yarn lint
|
22 | - run: yarn build
|
23 | - run: yarn test
|