From fbc60259aec56c39bf1b49860e5f4f5058e8cac0 Mon Sep 17 00:00:00 2001 From: Harold Cohen Date: Thu, 5 Oct 2023 13:44:24 +0200 Subject: [PATCH 1/3] ci: add conventional commit validation --- .github/workflows/validate.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index b404c28..313b900 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -4,11 +4,18 @@ on: branches: - '*' jobs: + validate-pr: + runs-on: ubuntu-latest + steps: + - name: PR conventional commit validation + uses: ytanikin/PRConventionalCommits@v1.1.0 + with: + task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]' lint: runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x] + node-version: [ 20.x ] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -21,7 +28,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x] + node-version: [ 20.x ] services: postgres: image: postgres:13.12 From f47678db7558f7ba7540f141818b7f4f5baadef0 Mon Sep 17 00:00:00 2001 From: Harold Cohen Date: Thu, 5 Oct 2023 14:12:54 +0200 Subject: [PATCH 2/3] ci: change cc checker --- .github/workflows/validate.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index 313b900..4b91c28 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -4,13 +4,19 @@ on: branches: - '*' jobs: - validate-pr: +# validate-pr: +# runs-on: ubuntu-latest +# steps: +# - name: PR conventional commit validation +# uses: ytanikin/PRConventionalCommits@v1.1.0 +# with: +# task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]' + check-for-cc: runs-on: ubuntu-latest steps: - - name: PR conventional commit validation - uses: ytanikin/PRConventionalCommits@v1.1.0 - with: - task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]' + - name: check-for-cc + id: check-for-cc + uses: agenthunt/conventional-commit-checker-action@v1.0.0 lint: runs-on: ubuntu-latest strategy: From 527f841c074df2c8dbf11c1827b94145e35c1358 Mon Sep 17 00:00:00 2001 From: Harold Cohen Date: Thu, 5 Oct 2023 14:17:00 +0200 Subject: [PATCH 3/3] ci: change cc checker --- .github/workflows/validate.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index 4b91c28..cdd7e7e 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -16,7 +16,7 @@ jobs: steps: - name: check-for-cc id: check-for-cc - uses: agenthunt/conventional-commit-checker-action@v1.0.0 + uses: agenthunt/conventional-commit-checker-action@v2.0.0 lint: runs-on: ubuntu-latest strategy: