Skip to content

Commit

Permalink
ci: use cocogitto-action for conventional commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisheksr01 committed Jan 4, 2025
1 parent 08e4811 commit 3071b9e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 16 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/app-pipeline-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@ permissions:
contents: read

jobs:
check-conventional-commits:
uses: cocogitto/cocogitto-action@v3
conventional-commit-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Conventional commit check
uses: cocogitto/cocogitto-action@v3

linting-pr:
runs-on: ubuntu-latest
needs:
- check-conventional-commits
- conventional-commit-check
steps:
- uses: actions/checkout@v4

Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/app-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,14 @@ permissions:
id-token: write # This is required for requesting the JWT

jobs:
check-conventional-commits:
uses: cocogitto/cocogitto-action@v3
conventional-commit-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Conventional commit check
uses: cocogitto/cocogitto-action@v3

linting:
runs-on: ubuntu-latest
Expand All @@ -44,7 +50,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- linting
- check-conventional-commits
- conventional-commit-check
steps:
- uses: actions/checkout@v4

Expand All @@ -67,7 +73,7 @@ jobs:
working-directory: rates
needs:
- linting
- check-conventional-commits
- conventional-commit-check
steps:
- uses: actions/checkout@v4

Expand All @@ -87,7 +93,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- linting
- check-conventional-commits
- conventional-commit-check
steps:
- name: Placeholder for unit test
run: |
Expand All @@ -97,7 +103,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- linting
- check-conventional-commits
- conventional-commit-check
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -166,7 +172,7 @@ jobs:
- id: bump-version
name: Bump to Next Semver Version
uses: armakuni/github-actions/bump-version@v0.14.11
uses: armakuni/github-actions/bump-version@v0.19.4

- name: Build Docker Image
run: |
Expand Down Expand Up @@ -346,7 +352,7 @@ jobs:
needs:
- placeholder-prod-deploy-to-az-container-apps
if: github.ref == 'refs/heads/main'
uses: armakuni/github-actions/.github/workflows/tag-and-release.yml@v0.14.10
uses: armakuni/github-actions/.github/workflows/tag-and-release.yml@v0.19.4
secrets: inherit
with:
download-artifacts: true
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/infra-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@ permissions:
id-token: write # This is required for requesting the JWT

jobs:
check-conventional-commits:
uses: cocogitto/cocogitto-action@v3
conventional-commit-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Conventional commit check
uses: cocogitto/cocogitto-action@v3

run-unit-tests:
runs-on: ubuntu-latest
needs:
- check-conventional-commits
- conventional-commit-check
defaults:
run:
working-directory: infrastructure/bootstrap
Expand Down Expand Up @@ -73,7 +79,7 @@ jobs:
terraform-compliance:
runs-on: ubuntu-latest
needs:
- check-conventional-commits
- conventional-commit-check
defaults:
run:
working-directory: infrastructure/bootstrap
Expand Down Expand Up @@ -126,7 +132,7 @@ jobs:
tf-code-lint-and-sast:
runs-on: ubuntu-latest
needs:
- check-conventional-commits
- conventional-commit-check
defaults:
run:
working-directory: infrastructure/bootstrap
Expand Down

0 comments on commit 3071b9e

Please sign in to comment.