Diffinery

codician/diffinerypublic

Open-source, agent-first GitHub and GitHub Actions alternative that runs on your own Cloudflare account: git hosting, pull requests, code review and drop-in GitHub Actions YAML on Workers, Durable Objects, R2 and Containers.

51 lines · 1.2 KBRaw History
1name: CI
2
3on:
4 push:
5 branches: [main]
6 pull_request:
7
8permissions:
9 contents: read
10
11concurrency:
12 group: ci-${{ github.ref }}
13 cancel-in-progress: true
14
15jobs:
16 check:
17 name: Typecheck and test
18 runs-on: ubuntu-latest
19 timeout-minutes: 20
20 steps:
21 - uses: actions/checkout@v4
22 - uses: pnpm/action-setup@v4
23 - uses: actions/setup-node@v4
24 with:
25 node-version: 22
26 cache: pnpm
27 - run: pnpm install --frozen-lockfile
28 - name: Build
29 run: pnpm -r --if-present build
30 - name: Typecheck
31 run: pnpm -r --if-present typecheck
32 - name: Unit tests
33 run: pnpm -r --if-present test
34 - name: Bundle the Worker (dry run)
35 working-directory: apps/diffinery
36 run: pnpm exec wrangler deploy --dry-run --env dev --outdir dist
37
38 e2e:
39 name: End-to-end (git, PRs, Actions)
40 runs-on: ubuntu-latest
41 timeout-minutes: 20
42 steps:
43 - uses: actions/checkout@v4
44 - uses: pnpm/action-setup@v4
45 - uses: actions/setup-node@v4
46 with:
47 node-version: 22
48 cache: pnpm
49 - run: pnpm install --frozen-lockfile
50 - run: pnpm -r --if-present build
51 - run: pnpm --filter @diffinery/app e2e