From a874fbcd816447d5a7f947cdaffe61df351ecdd9 Mon Sep 17 00:00:00 2001 From: Knut Kirkhorn Date: Thu, 22 Feb 2024 18:43:50 +0100 Subject: [PATCH 1/4] Add GitHub Actions --- .github/workflows/main.yml | 20 ++++++++++++++++++++ package.json | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d7aaab7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: CI +on: + - push + - pull_request +jobs: + test: + name: Node.js ${{ matrix.node-version }} + runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - 20 + - 18 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run format:check diff --git a/package.json b/package.json index f4e6e56..f69b6ad 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" From 5809f1ccf32c2cb5bbba42293c54d5814d8472d0 Mon Sep 17 00:00:00 2001 From: Knut Kirkhorn Date: Thu, 22 Feb 2024 18:46:26 +0100 Subject: [PATCH 2/4] Format readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From 57cc6000addc04bce39d1c0f172b08c36301ef43 Mon Sep 17 00:00:00 2001 From: Knut Kirkhorn Date: Thu, 22 Feb 2024 19:02:48 +0100 Subject: [PATCH 3/4] Use Bun instead of Node action --- .github/workflows/main.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d7aaab7..5a897e0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,17 +4,9 @@ on: - pull_request jobs: test: - name: Node.js ${{ matrix.node-version }} runs-on: ubuntu-latest - strategy: - matrix: - node-version: - - 20 - - 18 steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm run format:check + - uses: oven-sh/setup-bun@v1 + - run: bun install + - run: bun run format:check From c52022fcb70d7ee3651774bce357d72e6bd6d5a6 Mon Sep 17 00:00:00 2001 From: Knut Kirkhorn Date: Thu, 22 Feb 2024 19:04:05 +0100 Subject: [PATCH 4/4] Add build step in CI --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5a897e0..90987f4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,3 +10,4 @@ jobs: - uses: oven-sh/setup-bun@v1 - run: bun install - run: bun run format:check + - run: bun run build