Skip to content

Commit

Permalink
chore: setup & fix style (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Citymonstret authored Nov 28, 2023
1 parent 5871059 commit eb06326
Show file tree
Hide file tree
Showing 14 changed files with 463 additions and 11 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
27 changes: 27 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Continuous Integration

on:
pull_request:
push:
branches: [main]

jobs:
prettier:
name: Prettier Check
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Run Prettier
id: prettier-run
uses: rutajdash/[email protected]
with:
config_path: ./.prettierrc.yml

- name: Prettier Output
if: ${{ failure() }}
shell: bash
run: |
echo "The following files are not formatted correctly:"
echo "${{steps.prettier-run.outputs.prettier_output}}"
Loading

0 comments on commit eb06326

Please sign in to comment.