Browse Source

Merge pull request #1348 from cheahjs/fix/format-actions-enforce

fix: enforce formatters on GitHub Actions
Timothy Jaeryang Baek 1 year ago
parent
commit
09da5e71e2

+ 2 - 0
.github/workflows/format-backend.yaml

@@ -25,3 +25,5 @@ jobs:
           pip install yapf
       - name: Format backend
         run: bun run format:backend
+      - name: Check for changes after format
+        run: git diff --exit-code

+ 3 - 0
.github/workflows/format-build-frontend.yaml

@@ -18,5 +18,8 @@ jobs:
         run: bun install
       - name: Format frontend
         run: bun run format
+      - name: Check for changes after format
+        run: git diff --exit-code
       - name: Build frontend
+        if: always()
         run: bun run build