From 45737edeea5fd4d9774d4d0c1732e35b9a6e6199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=C2=A0F=2E=20Romaniello?= Date: Mon, 5 Aug 2024 17:34:09 -0300 Subject: [PATCH] ci: lint pull-requests --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ac14ea..e1de73f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: [pull_request] jobs: - release: + ci: runs-on: ubuntu-latest permissions: pull-requests: write # to be able to comment on released pull requests @@ -21,9 +21,12 @@ jobs: - name: Install dependencies run: npm clean-install - - name: Validate PR commits with commitlint + - name: Validate Commits Messages if: github.event_name == 'pull_request' run: npx --no-install commitlint --verbose --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} - - name: Run Tests + - name: Lint + run: npm run lint + + - name: Test run: npm test