name: Tests

on:
  pull_request:
    branches:
      - master
      - release/*
  push:
    branches:
      - master
      - release/*

jobs:
  mocha:
    runs-on: ${{ matrix.os }}
    name: Node.js ${{ matrix.node }}

    strategy:
      matrix:
        os:
          - windows-latest
          - ubuntu-18.04
        node:
          - "10"
          - "12"

    steps:
      - name: "Checkout"
        uses: actions/checkout@v2
        with:
          fetch-depth: 2

      - name: "Install Node.js"
        uses: actions/setup-node@v1
        with:
          node-version: "${{ matrix.node }}"

      - name: "Install dependencies"
        run: npm ci

      - name: "Run tests"
        run: "npm run test"

      - name: "Run tests"
        run: "npm run test"

  coverage:
    name: "Upload coverage"
    runs-on: ubuntu-latest
    needs:
      - "mocha"

    steps:
      - name: "Checkout"
        uses: actions/checkout@v2
        with:
          fetch-depth: 2

      - name: "Install Node.js"
        uses: actions/setup-node@v1
        with:
          node-version: "12"

      - name: "Install dependencies"
        run: npm ci

      - name: "Run tests"
        run: "npm run test-coverage"

      - name: "Upload to Coveralls"
        uses: coverallsapp/github-action@master
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}

name: Tests

on:
  pull_request:
    branches:
      - master
      - release/*
  push:
    branches:
      - master
      - release/*

jobs:
  mocha:
    runs-on: ${{ matrix.os }}
    name: Node.js ${{ matrix.node }} on ${{ matrix.os }}

    strategy:
      matrix:
        os:
          - windows-latest
          - ubuntu-18.04
        node:
          - "10"
          - "12"

    steps:
      - name: "Checkout"
        uses: actions/checkout@v2
        with:
          fetch-depth: 2

      - name: "Install Node.js"
        uses: actions/setup-node@v1
        with:
          node-version: "${{ matrix.node }}"

      - name: "Install dependencies"
        run: npm ci

      - name: "Run tests"
        run: "npm run test"

      - name: "Run tests"
        run: "npm run test"

  coverage:
    name: "Upload coverage"
    runs-on: ubuntu-latest
    needs:
      - "mocha"

    steps:
      - name: "Checkout"
        uses: actions/checkout@v2
        with:
          fetch-depth: 2

      - name: "Install Node.js"
        uses: actions/setup-node@v1
        with:
          node-version: "12"

      - name: "Install dependencies"
        run: npm ci

      - name: "Run tests"
        run: "npm run test-coverage"

      - name: "Upload to Coveralls"
        uses: coverallsapp/github-action@master
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}

Add OS in build name
Add OS in build name
