Skip to content

Commit

Permalink
Add workflow configuration (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
thasmo authored Nov 23, 2024
1 parent d42ab52 commit 06bb338
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: CHECK
name: SOURCE

on:
merge_group:
pull_request:
push:
branches:
- main

jobs:
install:
lint:
name: lint source
runs-on: ubuntu-latest
steps:
- name: checkout repository
Expand All @@ -26,5 +28,5 @@ jobs:
node-version-file: '.nvmrc'
- name: install dependencies
run: pnpm install
- name: lint codebase
- name: lint source
run: pnpm lint
30 changes: 30 additions & 0 deletions .github/workflows/title.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: TITLE

on:
merge_group:
pull_request:
types: [opened, reopened, edited, synchronize]

jobs:
lint:
name: lint title
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup package manager
uses: pnpm/action-setup@v4
with:
run_install: false
- name: install node
uses: actions/setup-node@v4
with:
cache: 'pnpm'
check-latest: true
node-version-file: '.nvmrc'
- name: install dependencies
run: pnpm install
- name: lint title
run: echo "${{ github.event.pull_request.title }}" | pnpm exec commitlint --extends @somehow-digital/commitlint-config/conventional

0 comments on commit 06bb338

Please sign in to comment.