ci: init (#2)

This commit is contained in:
Théo LUDWIG 2024-11-18 10:08:40 +01:00 committed by GitHub
parent dad6ff5e91
commit f5bac6360d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 31 additions and 0 deletions

10
.editorconfig Normal file
View File

@ -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

21
.github/workflows/ci.yml vendored Normal file
View File

@ -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"