Skip to content

Commit

Permalink
ci: move lint commit to its own workflow (#332)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mhanberg authored Nov 7, 2023
1 parent 6f12d2e commit 1b8d60f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}})
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/lint-commit.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1b8d60f

Please sign in to comment.