Sfoglia il codice sorgente

Merge pull request #292 from yisibl/add-ignore

chore: CI add ignore files (paths-ignore)
LongYinan 3 anni fa
parent
commit
12ada713ce
2 ha cambiato i file con 21 aggiunte e 0 eliminazioni
  1. 15 0
      .editorconfig
  2. 6 0
      .github/workflows/CI.yaml

+ 15 - 0
.editorconfig

@@ -0,0 +1,15 @@
+# EditorConfig helps developers define and maintain consistent
+# coding styles between different editors or IDEs
+# http://editorconfig.org
+root = true
+
+[*]
+indent_style = space
+indent_size = 2
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[*.md]
+trim_trailing_whitespace = false

+ 6 - 0
.github/workflows/CI.yaml

@@ -10,6 +10,12 @@ on:
       - main
     tags-ignore:
       - '**'
+    paths-ignore:
+      - '**/*.md'
+      - 'LICENSE'
+      - '**/*.gitignore'
+      - '.editorconfig'
+      - 'docs/**'
   pull_request: null
 
 jobs: