name: Continuous Integration
on: [push, pull_request]

jobs:
  build:
    name: Build & Test
    runs-on: ubuntu-latest
    steps:
      - name: Check out the source code
        uses: actions/checkout@v2

      - name: Set up NodeJS
        uses: actions/setup-node@v1.4.2
        with:
          node-version: '>=12.12.0'

      - name: Setup the project
        run: |
          yarn run setup
          npx lerna add @pattern-lab/engine-mustache --scope=@pattern-lab/core
          npx lerna add @pattern-lab/engine-handlebars --scope=@pattern-lab/core
          npx lerna add @pattern-lab/engine-underscore --scope=@pattern-lab/core
          npx lerna add @pattern-lab/engine-liquid --scope=@pattern-lab/core
          npx lerna add @pattern-lab/engine-twig --scope=@pattern-lab/core
          npx lerna add @pattern-lab/engine-react --scope=@pattern-lab/core

      - name: Run Unit Tests
        run: yarn run test

name: Continuous Integration
on: [push, pull_request]

jobs:
  build:
    name: Build & Test
    runs-on: ubuntu-latest
    steps:
      - name: Check out the source code
        uses: actions/checkout@v2

      - name: Set up NodeJS
        uses: actions/setup-node@v2.1.4
        with:
          node-version: '>=12.12.0'

      - name: Setup the project
        run: |
          yarn run setup
          npx lerna add @pattern-lab/engine-mustache --scope=@pattern-lab/core
          npx lerna add @pattern-lab/engine-handlebars --scope=@pattern-lab/core
          npx lerna add @pattern-lab/engine-underscore --scope=@pattern-lab/core
          npx lerna add @pattern-lab/engine-liquid --scope=@pattern-lab/core
          npx lerna add @pattern-lab/engine-twig --scope=@pattern-lab/core
          npx lerna add @pattern-lab/engine-react --scope=@pattern-lab/core

      - name: Run Unit Tests
        run: yarn run test

Update setup node to match new environment params
Update setup node to match new environment params