From 6ea3e04ba078978102a73c8f8dbbdd2b41e78e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Deuchnord?= Date: Wed, 20 Nov 2019 13:28:28 +0100 Subject: [PATCH] build: add commitlint configuration --- .github/workflows/commitlint.yml | 21 +++++++++++++++++++++ commitlint.config.js | 1 + 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/commitlint.yml create mode 100644 commitlint.config.js diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml new file mode 100644 index 0000000..e35c53d --- /dev/null +++ b/.github/workflows/commitlint.yml @@ -0,0 +1,21 @@ +name: Commit lint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: 13.x + - name: setup + run: | + npm install -g @commitlint/cli @commitlint/config-conventional + - name: commitlint + run: | + git log --format=%B -n 1 $GITHUB_SHA | commitlint + diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000..28fe5c5 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1 @@ +module.exports = {extends: ['@commitlint/config-conventional']}