diff --git a/.editorconfig b/.editorconfig index e7afc0a4..dc2e0953 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,3 +8,6 @@ end_of_line = LF charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true + +[*.yml] +indent_style = space \ No newline at end of file diff --git a/.github/workflows/format-files-prettier.yml b/.github/workflows/format-files-prettier.yml new file mode 100644 index 00000000..8c182cbf --- /dev/null +++ b/.github/workflows/format-files-prettier.yml @@ -0,0 +1,32 @@ +name: Format Files Prettier + +on: + pull_request: + branches: + - main + paths: + - "**.md" + - "**.mdx" + - "**.yml" + - "**.yaml" + - "**.toml" + - "**.html" + - "**.css" + push: + branches: + - main + +jobs: + prettier: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run Prettier + uses: creyD/prettier_action@v4.3 + with: + dry: true + prettier_options: . --check + prettier_version: 4.0.0-alpha.8 diff --git a/.github/workflows/format-files.yml b/.github/workflows/format-files.yml new file mode 100644 index 00000000..9f93fdcc --- /dev/null +++ b/.github/workflows/format-files.yml @@ -0,0 +1,31 @@ +name: Format & Lint Files + +on: + pull_request: + branches: + - main + paths: + - "**.js" + - "**.jsx" + - "**.ts" + - "**.tsx" + - "**.cjs" + - "**.json" + push: + branches: + - main + +jobs: + biome: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Biome + uses: biomejs/setup-biome@v2 + with: + version: 1.5.2 + + - name: Run Biome + run: biome ci . diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 526dc5a3..2ff428e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ce5740a2..8f35be28 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,9 +1,12 @@ name: Build and Test on: - push: pull_request: - branches: [main] + branches: + - main + push: + branches: + - main jobs: build: @@ -11,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 84e41af9..49ce5490 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0