name: "Node.js CI"

on: [push]

jobs:
  build:

    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
        node-version: [10.x, 12.x, 14.x]

    steps:
      - uses: actions/checkout@v2
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - name: Cache Node.js modules
        uses: actions/cache@v2
        with:
          # npm cache files are stored in `~/.npm` on Linux/macOS
          path: ~/.npm
          key: ${{ runner.OS }}-node-${{ hashFiles('**/package.json') }}
          restore-keys: |
            ${{ runner.OS }}-node-
            ${{ runner.OS }}-
      - name: Install application
        run: npm install
      - name: Execute unit tests
        run: npm test
      - name: Execute integration tests
        run: |
          export NODE_ENV=test
          npm run frisby

name: "Node.js CI"

on: [push]

jobs:
  build:

    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
        node-version: [10.x, 12.x, 14.x]

    steps:
      - uses: actions/checkout@v2
      - name: "Use Node.js ${{ matrix.node-version }}"
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - name: "Cache Node.js modules"
        uses: actions/cache@v2
        with:
          # npm cache files are stored in `~/.npm` on Linux/macOS
          path: ~/.npm
          key: ${{ runner.OS }}-node-${{ hashFiles('**/package.json') }}
          restore-keys: |
            ${{ runner.OS }}-node-
            ${{ runner.OS }}-
      - name: "Install Angular CLI"
        run: npm install -g @angular/cli
      - name: "Install application"
        run: npm install
      - name: "Execute unit tests"
        run: npm test
      - name: "Execute integration tests"
        run: |
          export NODE_ENV=test
          npm run frisby
      - uses: nanasess/setup-chromedriver@master
      - run: |
          export DISPLAY=:99
          chromedriver --url-base=/wd/hub &
          sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
      - name: "Execute e2e tests"
        run: |
          export NODE_ENV=test
          npm run protractor
      - name: "Execute e2e tests with application hosted in subfolder"
        run: |
          export NODE_ENV=test
          npm run preprotractor
          run e2e -- subfolder

Fix syntax of run/uses in GH action config and missing CLI package
Fix syntax of run/uses in GH action config and missing CLI package
