Skip to content

Commit

Permalink
ci: add shellcheck, yaml lint, spell check, and commit lint test
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywang committed Aug 12, 2023
1 parent 0148cca commit b331fb3
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Lint

on:
pull_request:
branches:
- "*"

jobs:
commitlint:
name: "📇 commitlint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wagoid/commitlint-github-action@v5

spellcheck:
name: "📋 spellcheck"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: codespell-project/actions-codespell@v1
with:
check_filenames: true
ignore_words_list: bu

shellcheck:
name: "🔭 Shellcheck"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -e SC1091 -e SC2002 -e SC2317

yamllint:
name: "🔬 yamlint"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: ibiqlik/action-yamllint@v3
with:
config_file: .yamllint.yml

0 comments on commit b331fb3

Please sign in to comment.