diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index c864848..2d7e146 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -8,12 +8,13 @@ on: jobs: test: - - runs-on: ubuntu-latest + name: Node ${{ matrix.node }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} strategy: matrix: - node-version: ['lts/*', '8', '10', '12', '14', '16', '18', '20'] + node: ['lts/*', '8', '10', '12', '14', '16', '18', '20'] + os: [ubuntu-latest, windows-latest] steps: - uses: actions/checkout@v2 @@ -22,8 +23,15 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' + - run: npm install + - run: npm test - env: - CI: false + + - name: Coveralls + uses: coverallsapp/github-action@v2 + with: + github-token: ${{ secrets.COVERALLS_REPO_TOKEN }} + flag-name: ${{matrix.os}}-node-${{ matrix.node }} + parallel: true