2020-04-10 18:42:25 +03:00
|
|
|
name: Test
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-05-27 15:17:36 +03:00
|
|
|
- main
|
2020-04-10 18:42:25 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node: [ '10', '12' ]
|
|
|
|
env:
|
|
|
|
FORCE_COLOR: 1
|
|
|
|
CI: true
|
|
|
|
name: Node ${{ matrix.node }}
|
|
|
|
steps:
|
2021-04-28 14:01:39 +03:00
|
|
|
- uses: actions/checkout@v2
|
2020-04-10 18:42:25 +03:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node }}
|
|
|
|
- run: yarn install
|
|
|
|
- run: yarn build
|
|
|
|
- run: yarn test
|