Skip to content

Commit 00c6738

Browse files
authored
Add workflow configuration (#114)
1 parent f30bf69 commit 00c6738

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
name: CHECK
1+
name: SOURCE
22

33
on:
4+
merge_group:
45
pull_request:
56
push:
67
branches:
78
- main
89

910
jobs:
10-
install:
11+
lint:
12+
name: lint source
1113
runs-on: ubuntu-latest
1214
steps:
1315
- name: checkout repository
@@ -26,5 +28,5 @@ jobs:
2628
node-version-file: '.nvmrc'
2729
- name: install dependencies
2830
run: pnpm install
29-
- name: lint codebase
31+
- name: lint source
3032
run: pnpm lint

.github/workflows/title.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: TITLE
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
types: [opened, reopened, edited, synchronize]
7+
8+
jobs:
9+
lint:
10+
name: lint title
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: checkout repository
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- name: setup package manager
18+
uses: pnpm/action-setup@v4
19+
with:
20+
run_install: false
21+
- name: install node
22+
uses: actions/setup-node@v4
23+
with:
24+
cache: 'pnpm'
25+
check-latest: true
26+
node-version-file: '.nvmrc'
27+
- name: install dependencies
28+
run: pnpm install
29+
- name: lint title
30+
run: echo "${{ github.event.pull_request.title }}" | pnpm exec commitlint --extends @somehow-digital/commitlint-config/conventional

0 commit comments

Comments
 (0)