build(ci): lint the code only once
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 29 Jul 2023 19:11:19 +0000 (21:11 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 29 Jul 2023 19:11:19 +0000 (21:11 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/ci.yml

index 06fee6c33ec5e47dd026db44b2b640165dfea7ea..685af355a7f3951306aa49c8a4819b0b3fa43b49 100644 (file)
@@ -28,6 +28,7 @@ jobs:
       - name: pnpm install
         run: pnpm install
       - name: pnpm lint
+        if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
         run: pnpm lint
       - name: pnpm build
         run: pnpm build
@@ -66,6 +67,7 @@ jobs:
       - name: pnpm install
         run: pnpm install
       - name: pnpm lint
+        if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
         run: pnpm lint
       - name: pnpm build
         run: pnpm build