diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml new file mode 100644 index 0000000..923b128 --- /dev/null +++ b/.github/workflows/commit-lint.yml @@ -0,0 +1,10 @@ +on: + push: + branches: ["main", "dev"] + pull_request: + branches: ["main", "dev"] +jobs: + commitlint: + runs-on: ubuntu-latest + steps: + - uses: opensource-nepal/commitlint@v1 diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml new file mode 100644 index 0000000..146dc58 --- /dev/null +++ b/.github/workflows/markdownlint.yml @@ -0,0 +1,17 @@ +on: + push: + branches: ["main", "dev"] + pull_request: + branches: ["main", "dev"] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: DavidAnson/markdownlint-cli2-action@v18 + with: + fix: true + globs: | + **/*.md + !CHANGELOG.md