Skip to content

Commit bb9f290

Browse files
Merge pull request #4 from input-output-hk/improve-ci
Improve CI
2 parents a063025 + 8c0f732 commit bb9f290

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
2325

2426
- name: Collect Workflow Telemetry
2527
uses: catchpoint/workflow-telemetry-action@v2
@@ -41,6 +43,9 @@ jobs:
4143
- name: Install dependencies
4244
run: yarn install --immutable --inline-builds
4345

46+
- name: Validate PR commits with commitlint
47+
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
48+
4449
- name: Format
4550
run: yarn format-check
4651

.github/workflows/git-checks.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Git Checks
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
7+
jobs:
8+
block-fixup:
9+
if: github.event.pull_request.draft == false
10+
runs-on: ubuntu-20.04
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Block Fixup Commit Merge
15+
uses: 13rac1/[email protected]

0 commit comments

Comments
 (0)