From 3d92765d6405d259af41ac5229e7d3cf656c6335 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 25 Jun 2025 11:43:04 +0200 Subject: [PATCH 1/2] Ignore __fixtures__/ and __output__/ for prettier --- .prettierignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..1dcd66b2 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +__fixtures__/ +__output__/ From 7b9b90fd51967a7e81c91bcf9387a1af370cad39 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 25 Jun 2025 11:46:16 +0200 Subject: [PATCH 2/2] Add autofix.ci CI job --- .github/workflows/autofix.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/autofix.yml diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml new file mode 100644 index 00000000..171da622 --- /dev/null +++ b/.github/workflows/autofix.yml @@ -0,0 +1,27 @@ +name: autofix.ci # needed to securely identify the workflow + +on: + pull_request: + +permissions: + contents: read + +jobs: + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + cache: 'yarn' + + - name: Install dependencies + run: yarn install --immutable --immutable-cache --check-cache + + - name: Format + run: yarn format + + # See https://autofix.ci/ + - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27