diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..93fcd5c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +# https://editorconfig.org/ + +root = true + +[*] +indent_style = space +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3cc8eab --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: "ci" + +on: + push: + branches: [develop] + pull_request: + branches: [develop, staging, main] + +jobs: + lint-commit: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v4.2.2" + - uses: "wagoid/commitlint-github-action@v6.1.2" + + lint-editorconfig-checker: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v4.2.2" + - uses: "editorconfig-checker/action-editorconfig-checker@main" + - run: "editorconfig-checker"