## Summary Add mount-lifetime layer provisioning through `Component.provide` and improve mutation state handling. ## Changes - Add dual-form `Component.provide` support for direct and pipeline usage. - Build provided layers once per mounted component and release them on unmount. - Refactor mutation state to retain mutation keys and finalized results. - Add non-blocking `mutateView` behavior and failure-state handling. - Update `MutationForm` to use the new mutation state shape. - Add Component and Mutation tests. - Update documentation and the lens form example. - Bump `effect-view` to `0.1.4`. ## Testing - `bun run --cwd packages/effect-view test` - 7 test files passed, 32 tests passed. --------- Co-authored-by: Julien Valverdé <julien.valverde@mailo.com> Reviewed-on: #73
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
name: Test build
|
|
run-name: Test build
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: "1.4"
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: "24"
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Lint TypeScript
|
|
run: bun lint:tsc
|
|
- name: Lint Biome
|
|
run: bun lint:biome
|
|
- name: Test
|
|
run: bun run test
|
|
- name: Build
|
|
run: bun run build
|
|
- name: Pack
|
|
run: bun pack
|
|
|
|
- name: Generate Docker metadata
|
|
id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: |
|
|
docker.valverde.cloud/thilawyn/effect-view
|
|
tags: |
|
|
type=ref,event=branch
|
|
type=ref,event=tag
|
|
type=ref,event=pr
|
|
type=sha
|
|
flavor: |
|
|
latest=true
|
|
- name: Build Docker image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile
|
|
push: false
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|