From 994855cc07338878a915feb864a3d28ae5562dcb Mon Sep 17 00:00:00 2001 From: Felipe Maion Date: Tue, 22 Oct 2024 06:56:53 +0000 Subject: [PATCH 1/2] ci: add `commitlint` job in `Linting` --- .github/workflows/linting.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index f519a67..187d7d1 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -29,3 +29,18 @@ jobs: - run: npm ci - run: npm run lint:eslint:check + + commitlint: + name: commitlint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: "lts/hydrogen" + + - run: npm ci + + - run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose From 304f9c4959c384585ef7175fae79a64155df970d Mon Sep 17 00:00:00 2001 From: Felipe Maion Date: Tue, 22 Oct 2024 07:03:56 +0000 Subject: [PATCH 2/2] ci: add `commitlint` job in `Linting` --- .github/workflows/linting.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index 187d7d1..d0d9dac 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -29,7 +29,6 @@ jobs: - run: npm ci - run: npm run lint:eslint:check - commitlint: name: commitlint runs-on: ubuntu-latest