Skip to content

Commit

Permalink
ci(github): add commit lint step in lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Apr 11, 2023
1 parent 418290e commit bd95800
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .commitlintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": [
"@commitlint/config-conventional"
]
],
"helpUrl": "https://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit"
}
14 changes: 11 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,22 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup
uses: actions/setup-node@v3
with:
cache: yarn
node-version: 18
- name: Install
run: yarn
- name: Lint
- name: Lint commits
uses: wagoid/commitlint-github-action@v5
with:
commitDepth: 25
configFile: ./.commitlintrc
failOnWarnings: true
- name: Lint code
run: yarn test:lint

type:
Expand Down Expand Up @@ -56,8 +64,8 @@ jobs:
name: Unit Test
strategy:
matrix:
timeZone: ["Europe/Paris"]
dst: ["", "DST"]
timeZone: ['Europe/Paris']
dst: ['', 'DST']
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit bd95800

Please sign in to comment.