From 8ea31d7f7ee8a17a6871f6f23a6ad5d52a7f83e9 Mon Sep 17 00:00:00 2001 From: DeveloperC Date: Sat, 16 Sep 2023 00:14:39 +0100 Subject: [PATCH] style: changing target to check-conventional-commits-linting To keep the consistent format of `check-...` used by all the other targets. --- .github/workflows/conventional-commits.yml | 10 +++++----- Earthfile | 4 ++-- ...inting.sh => check-conventional-commits-linting.sh} | 0 3 files changed, 7 insertions(+), 7 deletions(-) rename ci/{conventional-commits-linting.sh => check-conventional-commits-linting.sh} (100%) diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml index 628baf8..1700dc3 100644 --- a/.github/workflows/conventional-commits.yml +++ b/.github/workflows/conventional-commits.yml @@ -7,8 +7,8 @@ env: FORCE_COLOR: 1 jobs: - linting: - name: Linting + check-linting: + name: Check Linting runs-on: ubuntu-latest steps: - name: Download Earthly v0.7.17. @@ -18,8 +18,8 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - - name: Linting commits. - run: earthly --ci +conventional-commits-linting --from_reference "origin/${{ github.base_ref }}" + - name: Check commits Linting. + run: earthly --ci +check-conventional-commits-linting --from_reference "origin/${{ github.base_ref }}" check-next-version: name: Check Next Version runs-on: ubuntu-latest @@ -31,5 +31,5 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - - name: Checking expected vs current version. + - name: Check expected vs current version. run: earthly --ci +check-conventional-commits-next-version --from_reference "origin/${{ github.base_ref }}" diff --git a/Earthfile b/Earthfile index ea09504..b44e5f1 100644 --- a/Earthfile +++ b/Earthfile @@ -26,12 +26,12 @@ check-clean-git-history: RUN ./ci/check-clean-git-history.sh --from-reference "${from_reference}" -conventional-commits-linting: +check-conventional-commits-linting: FROM +rust-base RUN cargo install conventional_commits_linter --version 0.12.3 DO +COPY_METADATA ARG from_reference="origin/HEAD" - RUN ./ci/conventional-commits-linting.sh --from-reference "${from_reference}" + RUN ./ci/check-conventional-commits-linting.sh --from-reference "${from_reference}" check-conventional-commits-next-version: diff --git a/ci/conventional-commits-linting.sh b/ci/check-conventional-commits-linting.sh similarity index 100% rename from ci/conventional-commits-linting.sh rename to ci/check-conventional-commits-linting.sh