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"