Skip to content

Commit

Permalink
Merge pull request #12 from EnAccess/Add-more-ci-and-linting
Browse files Browse the repository at this point in the history
Unify linters
  • Loading branch information
dmohns authored Oct 26, 2023
2 parents b553935 + 5b59c49 commit 51e38e3
Show file tree
Hide file tree
Showing 10 changed files with 18,653 additions and 18,610 deletions.
5 changes: 5 additions & 0 deletions .ecrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Exclude": [
".git"
]
}
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# EditorConfig is awesome: https://EditorConfig.org

[*]
# Ensure consistent file encoding in UNIX style
charset = utf-8
end_of_line = lf
42 changes: 42 additions & 0 deletions .github/workflows/check-generic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Generic checks to ease collaboration:
# - consistent file encoding in UNIX style
# - whitespaces in all purposes files like markdown, yaml, etc
name: Check Generic

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
editorconfig-checker:
name: Run editorconfig-checker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install editorconfig-checker
run: pipx install "editorconfig-checker"
- name: Run editorconfig-checker
run: ec .

markdownlint:
name: Run markdownlint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run markdownlint-cli2
uses: DavidAnson/markdownlint-cli2-action@v13

yamllint:
name: Run yamllint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run yamllint
run: yamllint .
18 changes: 0 additions & 18 deletions .github/workflows/markdown-lint.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .markdownlint-cli2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ globs:

# Define glob expressions to ignore
# ignores:
# - "ignore*.md"
# - "ignore*.md"
8 changes: 8 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: default

rules:
document-start: disable
indentation:
spaces: 2
truthy:
check-keys: false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
>
<img
alt="GitHub Workflow Status"
src="https://img.shields.io/github/actions/workflow/status/EnAccess/Cicada-GSM-HW/markdown-lint.yaml"
src="https://img.shields.io/github/actions/workflow/status/EnAccess/Cicada-GSM-HW/check-generic.yaml"
>
<a href="https://github.com/EnAccess/Cicada-GSM-HW/blob/main/LICENSE" target="_blank">
<img
Expand Down
23,546 changes: 11,773 additions & 11,773 deletions design/source/kicad/lib/3D_Shapes/ASPI-4030S.STEP

Large diffs are not rendered by default.

Loading

0 comments on commit 51e38e3

Please sign in to comment.