From: Jérôme Benoit Date: Wed, 6 Sep 2023 00:11:24 +0000 (+0200) Subject: build(ci): cleanup CI workflows X-Git-Tag: v1.2.21~26 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=916678e95be119a569677280f846a3c79506f6ea;p=e-mobility-charging-stations-simulator.git build(ci): cleanup CI workflows Signed-off-by: Jérôme Benoit --- 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