From 916678e95be119a569677280f846a3c79506f6ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 6 Sep 2023 02:11:24 +0200 Subject: [PATCH] build(ci): cleanup CI workflows 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 | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06c32159..2d4aed73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,11 +8,12 @@ on: branches: [main] jobs: build: - runs-on: ${{ matrix.os }} strategy: matrix: os: [windows-latest, macos-latest, ubuntu-latest] node: ['16.x', '18.x', '20.x'] + name: Node ${{ matrix.node }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 with: @@ -26,7 +27,7 @@ jobs: node-version: ${{ matrix.node }} cache: 'pnpm' - name: pnpm install - run: pnpm install + run: pnpm install --ignore-scripts - name: pnpm lint if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }} run: pnpm lint @@ -44,14 +45,15 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} build-dashboard: - runs-on: ${{ matrix.os }} - defaults: - run: - working-directory: ui/web strategy: matrix: os: [windows-latest, macos-latest, ubuntu-latest] node: ['16.x', '18.x', '20.x'] + name: Node ${{ matrix.node }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + defaults: + run: + working-directory: ui/web steps: - uses: actions/checkout@v4 with: @@ -65,7 +67,7 @@ jobs: node-version: ${{ matrix.node }} cache: 'pnpm' - name: pnpm install - run: pnpm install + run: pnpm install --ignore-scripts - name: pnpm lint if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }} run: pnpm lint -- 2.34.1