build(ci): add autofix GH action
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 28 Jun 2024 15:05:45 +0000 (17:05 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 28 Jun 2024 15:05:45 +0000 (17:05 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/workflows/autofix.yml [new file with mode: 0644]

diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml
new file mode 100644 (file)
index 0000000..3100c78
--- /dev/null
@@ -0,0 +1,20 @@
+name: autofix.ci
+on:
+  pull_request:
+  push:
+    branches: [master]
+permissions:
+  contents: read
+
+jobs:
+  autofix:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+      - uses: pnpm/action-setup@v4
+      - uses: actions/setup-node@v4
+        with:
+          cache: 'pnpm'
+      - run: pnpm install --ignore-scripts
+      - run: pnpm format
+      - uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a