From 179eaa5bb1c784052b2f3dee2d4c66dc33bfb7a6 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Mon, 21 Nov 2022 13:31:49 -0800 Subject: [PATCH] ci: run commitlint/format only on ubuntu --- .github/workflows/CI.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 453d89f82..f27ecee98 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -34,11 +34,12 @@ jobs: - name: Run tests 👩🏾‍💻 run: npm run test - - if: "!contains(github.event.head_commit.message, 'Prepare')" + - if: "!contains(github.event.head_commit.message, 'Prepare') && contains(matrix.os, 'ubuntu')" name: Commit lint ✨ uses: wagoid/commitlint-github-action@v2 - - name: Format ✨ + - if: "contains(matrix.os, 'ubuntu')" + name: Format ✨ run: npm run test.format - name: Lint ✨