From 3071b9e18fa192d776eec61c0cc1ac98eac403fe Mon Sep 17 00:00:00 2001 From: abhisheksr01 Date: Sat, 4 Jan 2025 23:24:34 +0000 Subject: [PATCH] ci: use cocogitto-action for conventional commit checks --- .github/workflows/app-pipeline-pr.yml | 12 +++++++++--- .github/workflows/app-pipeline.yml | 22 ++++++++++++++-------- .github/workflows/infra-pipeline.yml | 16 +++++++++++----- 3 files changed, 34 insertions(+), 16 deletions(-) diff --git a/.github/workflows/app-pipeline-pr.yml b/.github/workflows/app-pipeline-pr.yml index 22cbf56..1216329 100644 --- a/.github/workflows/app-pipeline-pr.yml +++ b/.github/workflows/app-pipeline-pr.yml @@ -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 diff --git a/.github/workflows/app-pipeline.yml b/.github/workflows/app-pipeline.yml index a3390f2..a392959 100644 --- a/.github/workflows/app-pipeline.yml +++ b/.github/workflows/app-pipeline.yml @@ -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 @@ -44,7 +50,7 @@ jobs: runs-on: ubuntu-latest needs: - linting - - check-conventional-commits + - conventional-commit-check steps: - uses: actions/checkout@v4 @@ -67,7 +73,7 @@ jobs: working-directory: rates needs: - linting - - check-conventional-commits + - conventional-commit-check steps: - uses: actions/checkout@v4 @@ -87,7 +93,7 @@ jobs: runs-on: ubuntu-latest needs: - linting - - check-conventional-commits + - conventional-commit-check steps: - name: Placeholder for unit test run: | @@ -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 @@ -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: | @@ -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 diff --git a/.github/workflows/infra-pipeline.yml b/.github/workflows/infra-pipeline.yml index 49296fe..f0fa8de 100644 --- a/.github/workflows/infra-pipeline.yml +++ b/.github/workflows/infra-pipeline.yml @@ -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 @@ -73,7 +79,7 @@ jobs: terraform-compliance: runs-on: ubuntu-latest needs: - - check-conventional-commits + - conventional-commit-check defaults: run: working-directory: infrastructure/bootstrap @@ -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