Skip to content

Commit

Permalink
ci: run commitlint/format only on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 21, 2022
1 parent 0f3764f commit 179eaa5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ✨
Expand Down

0 comments on commit 179eaa5

Please sign in to comment.