From 9878bb09c0e3405c2465028244c01c4354a926ef Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Mon, 25 Sep 2023 23:13:54 -0500 Subject: [PATCH] Add formatting --- .github/workflows/ci.yaml | 8 ++++++++ CONTRIBUTING.md | 2 +- package.json | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index eb44ad4..8117c47 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,3 +21,11 @@ jobs: with: bun-version: latest - run: bun test + fmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + - run: bun fmt:ci \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a28d795..8311b04 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,4 +15,4 @@ Reference existing `*.test.ts` files for implementation. ```sh # Run tests for a specific module! $ bun test -t '' -``` \ No newline at end of file +``` diff --git a/package.json b/package.json index 2666697..2191e59 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "name": "modules", "scripts": { "test": "bun test", - "fmt": "bun x prettier -w **/*.ts **/*.md" + "fmt": "bun x prettier -w **/*.ts **/*.md *.md", + "fmt:ci": "bun x prettier --check **/*.ts **/*.md *.md" }, "devDependencies": { "bun-types": "^1.0.3"