Skip to content

Commit 179eaa5

Browse files
committed
ci: run commitlint/format only on ubuntu
1 parent 0f3764f commit 179eaa5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ jobs:
3434
- name: Run tests 👩🏾‍💻
3535
run: npm run test
3636

37-
- if: "!contains(github.event.head_commit.message, 'Prepare')"
37+
- if: "!contains(github.event.head_commit.message, 'Prepare') && contains(matrix.os, 'ubuntu')"
3838
name: Commit lint ✨
3939
uses: wagoid/commitlint-github-action@v2
4040

41-
- name: Format ✨
41+
- if: "contains(matrix.os, 'ubuntu')"
42+
name: Format ✨
4243
run: npm run test.format
4344

4445
- name: Lint ✨

0 commit comments

Comments
 (0)