From daa307e54545706359aff24ef409a73eac4a4c11 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 14 Oct 2022 21:03:26 +0200 Subject: [PATCH] Fix cross OS CI GH actions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/ci.yml | 12 ++++++------ .github/workflows/npmpublish.yml | 2 -- 2 files changed, 6 insertions(+), 8 deletions(-) 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 -- 2.43.0