summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authoriza <59828082+izadoesdev@users.noreply.github.com>2025-06-24 18:23:07 +0300
committerGitHub <noreply@github.com>2025-06-24 18:23:07 +0300
commitc0b85b0f29a48a7b16cd9065df4b525ff12da361 (patch)
treef1a910b07eb0a2de4dfc851a7c25ebb4d5d3b4cb /.github/workflows
parentb17e05f126a3206459cdc0296ae364a5af1e5b96 (diff)
parent82e7d2236d3ef5671b6f362b0ea02db0a4a66b6a (diff)
downloadopencut-c0b85b0f29a48a7b16cd9065df4b525ff12da361.tar.gz
Merge pull request #43 from Zaid-maker/implement-workflows
feat: add Bun CI workflow for building and testing
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/bun-ci.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/.github/workflows/bun-ci.yml b/.github/workflows/bun-ci.yml
new file mode 100644
index 00000000..91bf125c
--- /dev/null
+++ b/.github/workflows/bun-ci.yml
@@ -0,0 +1,50 @@
+name: Bun CI
+
+concurrency:
+ group: bun-ci-${{ github.ref }}
+ cancel-in-progress: true
+
+on:
+ push:
+ branches: [main]
+ paths-ignore:
+ - "*.md"
+ pull_request:
+ branches: [main]
+ paths-ignore:
+ - "*.md"
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest, macos-latest]
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Install Bun
+ uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76
+ with:
+ bun-version: 1.2.2
+
+ - name: Cache Bun modules
+ uses: actions/cache@v4
+ with:
+ path: ~/.bun/install/cache
+ key: ${{ runner.os }}-bun-${{ hashFiles('apps/web/bun.lock') }}
+
+ - name: Install dependencies
+ working-directory: apps/web
+ run: bun install
+
+ - name: Build
+ working-directory: apps/web
+ run: bun run build
+
+ - name: Run tests
+ working-directory: apps/web
+ run: echo "No tests implemented yet"
+ continue-on-error: true