From 1b8d60f720c9f3c019be2ef1abc91c0fb71290be Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Tue, 7 Nov 2023 08:31:08 -0500 Subject: [PATCH] ci: move lint commit to its own workflow (#332) * ci: move lint commit to its own workflow * fixup! ci: move lint commit to its own workflow * fixup! ci: move lint commit to its own workflow --- .github/workflows/ci.yaml | 12 ------------ .github/workflows/lint-commit.yaml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/lint-commit.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 74ba55ee..3039d321 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,18 +5,6 @@ on: branches: main jobs: - commitlint: - runs-on: ubuntu-latest - name: commitlint - if: github.event_name == 'pull_request' - - steps: - - uses: actions/checkout@v4 - - name: Install Deps - run: yarn install - - name: Lint PR Title - run: echo "${{ github.event.pull_request.title }}" | yarn commitlint - tests: runs-on: ubuntu-latest name: Test (${{matrix.elixir}}/${{matrix.otp}}) diff --git a/.github/workflows/lint-commit.yaml b/.github/workflows/lint-commit.yaml new file mode 100644 index 00000000..2b0f663b --- /dev/null +++ b/.github/workflows/lint-commit.yaml @@ -0,0 +1,20 @@ +name: Lint Commit +on: + pull_request: + types: + - opened + - reopened + - synchronize + - edited + +jobs: + commitlint: + runs-on: ubuntu-latest + name: commitlint + + steps: + - uses: actions/checkout@v4 + - name: Install Deps + run: yarn install + - name: Lint PR Title + run: echo "${{ github.event.pull_request.title }}" | yarn commitlint