diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..90987f4 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,13 @@ +name: CI +on: + - push + - pull_request +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v1 + - run: bun install + - run: bun run format:check + - run: bun run build diff --git a/README.md b/README.md index 080e431..c0163cf 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ A unified email client that can use multiple providers. If one provider fails, i ## Thing to notice -* Does not support attachments yet. -* Only includes a few providers by default yet. (Please PR if you want to add more) -* API may change a lot until v1.0.0 +- Does not support attachments yet. +- Only includes a few providers by default yet. (Please PR if you want to add more) +- API may change a lot until v1.0.0 ## Example usage diff --git a/package.json b/package.json index f5b8d8f..3cdfa16 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "types": "dist/index.d.ts", "scripts": { "build": "bunx tsc", - "prepublishOnly": "bun run build" + "prepublishOnly": "bun run build", + "format:check": "prettier --check ." }, "files": [ "dist"