Code development platform for open source projects from the European Union institutions

Verified Commit dec94c6f authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

ci: Add `prettier` workflow.

parent f46137da
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -13,6 +13,14 @@ insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
max_line_length = 120

[*.{json,json.dist,yml,yml.dist}]
[*.{json,json.dist,yml,yaml,yml.dist,yaml.dist}]
indent_style = space
indent_size = 4
max_line_length = 120

[*.{md}]
indent_style = space
indent_size = 2
max_line_length = 80
+20 −0
Original line number Diff line number Diff line
name: Prettier checks

# This action works with pull requests and pushes
on:
    pull_request:
    push:

jobs:
    prettier:
        runs-on: ubuntu-latest

        steps:
            - name: Checkout
              uses: actions/checkout@v3

            - name: Install the Nix package manager
              uses: cachix/install-nix-action@v17

            - name: Checks
              run: nix run nixpkgs#nodePackages.prettier -- --check .

.prettierignore

0 → 100644
+6 −0
Original line number Diff line number Diff line
/.direnv/
/.idea/
/build/
/vendor/
/docs/
CHANGELOG.md
 No newline at end of file

.prettierrc

0 → 100644
+3 −0
Original line number Diff line number Diff line
{
  "proseWrap": "always"
}