From 3aa8a27df2c81c0a93c4440807a5047759e0b0b6 Mon Sep 17 00:00:00 2001 From: shaharkazaz Date: Tue, 19 Sep 2023 08:32:31 +0300 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=8E=A1=20add=20commitlint=20job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d38ba7d66..4b89d44dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,9 +40,23 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - + - name: Setup uses: ./.github/actions/step-setup - name: Run E2E run: npm run ci:e2e + + commitlint: + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup + uses: ./.github/actions/step-setup + + - name: Validate PR commits with commitlint + run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose