diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index 95659c2..7f39cbc 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -11,18 +11,24 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + node: [12, 14] + os: [ubuntu-latest, windows-latest] + steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 12 + node-version: ${{ matrix.node }} - name: Run ci run: npm ci - name: Run tests - run: npm run coverage + run: npm run test-cov - name: Coveralls uses: coverallsapp/github-action@master diff --git a/package.json b/package.json index c14537a..d3841f2 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "index.js", "scripts": { "test": "mocha", - "coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls" + "test-cov": "nyc npm test", + "test-coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls" }, "repository": { "type": "git",