aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-02-06 13:32:42 +0000
committerMohamedBassem <me@mbassem.com>2024-02-06 13:33:19 +0000
commite639ee3d4b4ddbd396e04d4822f9151028d7e9c0 (patch)
tree5fea821d7a3629b7fb15df8e2953f34e18565644 /.github/workflows
parent2f59dbf31c4f1ed24def0368d946378a4b57ad12 (diff)
downloadkarakeep-e639ee3d4b4ddbd396e04d4822f9151028d7e9c0.tar.zst
Add github action for lint, format and build
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/main.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 00000000..e59a1bd9
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,21 @@
+name: my-workflow
+on:
+ push:
+ branches:
+ - main
+jobs:
+ build-lint:
+ name: Build and Lint
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: oven-sh/setup-bun@v1
+ - name: Install deps
+ run: bun install --frozen-lockfile
+ - name: Lint
+ run: bunx eslint .
+ - name: Format
+ run: bunx prettier . --check
+ - name: Build web app
+ working-directory: web
+ run: bun run build