diff --git a/.circleci/main.yml b/.circleci/main.yml index 190945432f76..4eff2182563f 100644 --- a/.circleci/main.yml +++ b/.circleci/main.yml @@ -100,7 +100,7 @@ jobs: - *restore_gomod - run: | - make -j 1 test/unit/gotest.junit.xml \ + make -j $(nproc) test/unit/gotest.junit.xml \ && [[ ! $(jq -s -c 'map(select(.Action == "fail")) | .[]' test/unit/gotest.json) ]] - run: when: always diff --git a/.github/workflows/gotest.yml b/.github/workflows/gotest.yml index 7c7c6beb9190..0bf7eb58336e 100644 --- a/.github/workflows/gotest.yml +++ b/.github/workflows/gotest.yml @@ -35,7 +35,7 @@ jobs: name: ${{ github.job }} - name: 👉️ If this step failed, go to «Summary» (top left) → inspect the «Failures/Errors» table run: | - make -j 1 test/unit/gotest.junit.xml && + make -j $(nproc) test/unit/gotest.junit.xml && [[ ! $(jq -s -c 'map(select(.Action == "fail")) | .[]' test/unit/gotest.json) ]] - name: Upload coverage to Codecov uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0