Skip to content

chore: initial commit πŸ€–πŸ“¦ #4

chore: initial commit πŸ€–πŸ“¦

chore: initial commit πŸ€–πŸ“¦ #4

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
lint-and-test:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Format check
run: bun run format:check
- name: Lint check
run: bun run lint:check
- name: Type check
run: bun run typecheck
- name: Run tests with coverage
run: bun run test:coverage
build:
name: Build Executables
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
target: linux
artifact: aipm-linux-x64
- os: macos-latest
target: darwin
artifact: aipm-darwin-x64
- os: macos-latest
target: darwin-arm
artifact: aipm-darwin-arm64
- os: windows-latest
target: windows
artifact: aipm-windows-x64.exe
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build executable
run: bun run build:${{ matrix.target }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: dist/${{ matrix.artifact }}
retention-days: 7