name: CI

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - '**'

jobs:
  test:
    name: Lint and test on Node.js ${{ matrix.node }}

    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        node: [12, 14, 16]

    steps:
      - uses: actions/checkout@v2

      - uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node }}

      - run: npm -v

      - run: npm ci

      - run: npm ls @stylelint/postcss-css-in-js

      - run: npm ls

      - name: Lint and Test
        run: npm test

name: CI

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - '**'

jobs:
  test:
    name: Lint and test on Node.js ${{ matrix.node }}

    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        node: [12, 14, 16]

    steps:
      - uses: actions/checkout@v2

      - uses: actions/setup-node@v2
        with:
          node-version: ${{ matrix.node }}

      - name: Install latest npm
        run: npm install --global npm@latest

      - run: npm -v

      - run: npm ci

      - run: npm ls @stylelint/postcss-css-in-js

      - run: npm ls

      - name: Lint and Test
        run: npm test

Use latest npm in all Node versions
Use latest npm in all Node versions
