From c6133f716007602b3a8f18330f19d66989ae663b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 31 Aug 2023 13:14:16 -0500 Subject: [PATCH] ci: run prettier on every commit --- .github/workflows/test.yml | 9 +++++++++ justfile | 3 +++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5273edb..8dc95f5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,3 +16,12 @@ jobs: - uses: extractions/setup-just@v1 - run: just install-dependencies - run: just test + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - run: just install-dependencies + - run: just format-check \ No newline at end of file diff --git a/justfile b/justfile index 4cd5b48..c3907ff 100644 --- a/justfile +++ b/justfile @@ -21,3 +21,6 @@ publish: build emit-types format: prettier --plugin-search-dir . --write . + +format-check: + prettier --plugin-search-dir . --check . \ No newline at end of file