diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index 82915729f8..7820e3f791 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -25,6 +25,30 @@ jobs: - name: Install Dependencies run: npm install - name: Test + run: npm run test + env: + CI: true + coverage: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + node-version: ['12.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 NPM dependencies + uses: actions/cache@v1 + with: + path: node_modules + key: ${{ runner.os }}-npm-cache + restore-keys: ${{ runner.os }}-npm-cache + - name: Install Dependencies + run: npm install + - name: Coverage run: npm run test-cov env: CI: true @@ -32,14 +56,3 @@ jobs: uses: coverallsapp/github-action@master with: github-token: ${{ secrets.github_token }} - flag-name: run-${{ runner.os }}-${{ matrix.node-version }} - parallel: true - coverall-finish: - needs: tester - runs-on: ubuntu-latest - steps: - - name: Coveralls Finished - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.github_token }} - parallel-finished: true diff --git a/.gitignore b/.gitignore index 217e75391a..ec2e7706dc 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ tmp/ yarn.lock package-lock.json .nyc_output/ +coverage/ .tmp* diff --git a/.mocharc.yml b/.mocharc.yml index bea470cf1b..d001bb7072 100644 --- a/.mocharc.yml +++ b/.mocharc.yml @@ -5,3 +5,4 @@ full-trace: true exit: true require: - "chai/register-should" +parallel: true diff --git a/package.json b/package.json index 778aa0208a..7cec4fe468 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "scripts": { "eslint": "eslint .", "test": "mocha test/index.js", - "test-cov": "nyc --reporter=lcovonly npm run test", + "test-cov": "nyc --reporter=lcovonly npm run test -- --no-parallel", "lint-staged": "lint-staged" }, "directories": {