From: Jérôme Benoit Date: Fri, 14 Oct 2022 19:03:26 +0000 (+0200) Subject: Fix cross OS CI GH actions X-Git-Tag: v2.3.2~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=daa307e54545706359aff24ef409a73eac4a4c11;p=poolifier.git Fix cross OS CI GH actions Signed-off-by: Jérôme Benoit --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 075e84949..8cd177af3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,17 +41,17 @@ jobs: - name: Lint run: npm run lint - - name: Tests & Coverage - if: matrix.node == '16.x' + - name: Tests + run: npm run test + + - name: Coverage & Linter Reports + if: "github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'" run: | - npm run test npm run coverage npm run lint:report - env: - CI: true - name: Sonar Code Analysis - if: "github.repository == 'poolifier/poolifier' && matrix.node == '16.x'" + if: "github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'" uses: sonarsource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 7068c27db..6b1a3731c 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -24,8 +24,6 @@ jobs: run: | npm run test npm run coverage - env: - CI: true - name: Lint run: npm run lint