Skip to content

Commit

Permalink
Merge pull request #4 from input-output-hk/improve-ci
Browse files Browse the repository at this point in the history
Improve CI
  • Loading branch information
pczeglik-iohk authored Jun 24, 2024
2 parents a063025 + 8c0f732 commit bb9f290
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

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

- name: Validate PR commits with commitlint
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose

- name: Format
run: yarn format-check

Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/git-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Git Checks

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
block-fixup:
if: github.event.pull_request.draft == false
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4
- name: Block Fixup Commit Merge
uses: 13rac1/block-fixup-merge-action@v2.0.0

0 comments on commit bb9f290

Please sign in to comment.