ci: use self-hosted docker runner (my-runner) with Bun

This commit is contained in:
Andrew Emelyaneko
2026-10-28 23:32:32 +03:00
parent 64009f6ee5
commit 5db614f5d6
+17 -18
View File
@@ -2,33 +2,32 @@ name: CI
on: on:
push: push:
branches: branches: [main, develop]
- main
- develop
pull_request: pull_request:
branches: branches: [main, develop]
- main
- develop
workflow_dispatch: workflow_dispatch:
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: docker
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 run: |
git init -q
- name: Setup Bun git remote add origin "${GITHUB_SERVER_URL:-http://10.8.0.52:8080}/$GITHUB_REPOSITORY.git"
uses: oven-sh/setup-bun@v1 git fetch -q --depth 1 origin "$GITHUB_SHA"
with: git checkout -q FETCH_HEAD
bun-version: latest - name: Install Bun
run: |
apk add --no-cache git curl unzip bash
if ! command -v bun >/dev/null 2>&1; then
curl -fsSL https://bun.sh/install | bash
cp -f /root/.bun/bin/bun /usr/local/bin/bun
fi
bun --version
- name: Install dependencies - name: Install dependencies
run: bun install run: bun install
- name: TypeScript type checking - name: TypeScript type checking
run: bun run typecheck run: bun run typecheck
- name: Run tests - name: Run tests
run: bun run test run: bun run test