From f5bac6360d75dad3169aeedab8b8f9e55cba30b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Mon, 18 Nov 2024 10:08:40 +0100 Subject: [PATCH] ci: init (#2) --- .editorconfig | 10 ++++++++++ .github/workflows/ci.yml | 21 +++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .editorconfig create mode 100644 .github/workflows/ci.yml 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"