2020-03-15 08:32:20 +01:00
|
|
|
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
|
|
|
|
|
|
name: Node.js CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-04-18 10:15:12 +02:00
|
|
|
node-version: [12.x]
|
2020-03-15 08:32:20 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2020-12-16 11:38:49 +01:00
|
|
|
uses: actions/setup-node@v2
|
2020-03-15 08:32:20 +01:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2020-03-15 08:39:57 +01:00
|
|
|
- run: npm install -g yarn
|
|
|
|
- run: yarn install --frozen-lockfile
|
|
|
|
- run: yarn run lint
|
|
|
|
- run: yarn run test --runInBand --no-cache
|
2020-03-15 08:32:20 +01:00
|
|
|
env:
|
|
|
|
CI: true
|