Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 0 additions & 1 deletion .repos/alchemy-effect/.eslintignore

This file was deleted.

3 changes: 1 addition & 2 deletions .repos/alchemy-effect/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
* text=auto eol=lf

.vendor/** linguist-vendored
distilled/** linguist-vendored
submodules/** linguist-vendored
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
49 changes: 0 additions & 49 deletions .repos/alchemy-effect/.github/pr-assets/update-screenshots.sh

This file was deleted.

20 changes: 13 additions & 7 deletions .repos/alchemy-effect/.github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
push:
branches: [main]
paths:
- "distilled"
- "submodules/distilled"
- "benchmark/**"
- "examples/**"
- "packages/**"
Expand All @@ -22,7 +22,7 @@ on:
pull_request:
types: [opened, reopened, synchronize]
paths:
- "distilled"
- "submodules/distilled"
- "benchmark/**"
- "examples/**"
- "packages/**"
Expand Down Expand Up @@ -53,17 +53,17 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Checkout distilled
run: git submodule update --init --depth=1 --checkout -- distilled
run: git submodule update --init --depth=1 --checkout -- submodules/distilled

- name: Restore Astro build cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: website/node_modules/.astro
key: website-astro-${{ runner.os }}-${{ github.event.pull_request.number || 'main' }}-${{ github.sha }}-${{ github.workflow }}-${{ github.run_attempt }}
key: website-astro-check-${{ runner.os }}-${{ github.event.pull_request.number || 'main' }}-${{ github.sha }}-${{ github.workflow }}-${{ github.run_attempt }}
restore-keys: |
website-astro-${{ runner.os }}-${{ github.event.pull_request.number || 'main' }}-${{ github.sha }}-
website-astro-${{ runner.os }}-${{ github.event.pull_request.number || 'main' }}-
website-astro-${{ runner.os }}-main-
website-astro-check-${{ runner.os }}-${{ github.event.pull_request.number || 'main' }}-${{ github.sha }}-
website-astro-check-${{ runner.os }}-${{ github.event.pull_request.number || 'main' }}-
website-astro-check-${{ runner.os }}-main-

- name: Restore Turbo cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
Expand All @@ -84,9 +84,15 @@ jobs:
- name: Run Node Utils tests
run: pnpm -C packages/node-utils test

- name: Run pkg tests
run: pnpm -C packages/pkg test

- name: Run Typecheck
run: pnpm tsc -b

- name: Test CLI launcher
run: timeout 240 pnpm test test/Cli/launcher.test.ts test/Cli/exitCodes.test.ts --retry 0 --concurrency 1

- name: Check API JSDocs
run: pnpm docs:check-jsdoc

Expand Down
2 changes: 1 addition & 1 deletion .repos/alchemy-effect/.github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
fetch-depth: 1

- name: Checkout distilled
run: git submodule update --init --depth=1 --checkout -- distilled
run: git submodule update --init --depth=1 --checkout -- submodules/distilled

- name: Restore Turbo cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
Expand Down
8 changes: 3 additions & 5 deletions .repos/alchemy-effect/.github/workflows/cloudflare-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
push:
branches: [main]
paths:
- "distilled"
- "fixtures/**"
- "submodules/distilled"
- "packages/cloudflare-runtime/**"
- "packages/cloudflare-test-tools/**"
- "packages/frontend-frameworks/**"
Expand All @@ -21,8 +20,7 @@ on:
pull_request:
types: [opened, reopened, synchronize]
paths:
- "distilled"
- "fixtures/**"
- "submodules/distilled"
- "packages/cloudflare-runtime/**"
- "packages/cloudflare-test-tools/**"
- "packages/frontend-frameworks/**"
Expand Down Expand Up @@ -66,7 +64,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Checkout distilled
run: git submodule update --init --depth=1 --checkout -- distilled
run: git submodule update --init --depth=1 --checkout -- submodules/distilled

- name: Restore Turbo cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
Expand Down
110 changes: 110 additions & 0 deletions .repos/alchemy-effect/.github/workflows/pkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: Package Preview

# Builds, packs, and publishes preview packages from the job that built them.
# The job proves it is the run it claims to be by uploading the manifest as
# an artifact of its own run, which only the job's runtime token can do; the
# registry reads the artifact list back through the GitHub API. That works
# the same for pushes, same-repo pull requests, and fork pull requests, and
# needs no permissions or secrets. The upload has to be an action step: the
# runtime token is never exposed to `run:` steps.

on:
push:
branches: [main]
paths:
- "submodules/distilled"
- "packages/**"
- "scripts/**"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- "turbo.json"
- "tsconfig.json"
- ".github/workflows/pkg.yml"
pull_request:
paths:
- "submodules/distilled"
- "packages/**"
- "scripts/**"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- "turbo.json"
- "tsconfig.json"
- ".github/workflows/pkg.yml"

permissions:
contents: read

env:
PKG_REGISTRY: https://pkg.alchemy.run

concurrency:
group: pkg-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
publish:
name: Publish preview packages
runs-on: blacksmith-8vcpu-ubuntu-2404
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# Pack the pull request head rather than the synthetic merge commit,
# so every tarball is addressed by a commit that exists on the PR.
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Checkout distilled
run: git submodule update --init --depth=1 --checkout -- submodules/distilled

# No turbo cache here on purpose: the restore keys fall back to any
# earlier run, and replayed outputs for the distilled packages, whose
# sources live in a submodule, have compiled alchemy against stale
# declarations. A clean build is a few minutes and always correct.
- name: Setup pnpm, Node.js, Bun and install dependencies
uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0
with:
cache: true
install: true
require-lockfile: true

- name: Build packages
run: pnpm build:pkg

- name: Pack CLI release artifacts
env:
ALCHEMY_CLI_PACKAGES: ${{ runner.temp }}/cli-packages
run: |
mkdir -p "$ALCHEMY_CLI_PACKAGES"
pnpm --filter-prod 'alchemy...' --recursive pack --pack-destination "$ALCHEMY_CLI_PACKAGES"

- name: Test packed CLI outside the checkout
env:
ALCHEMY_CLI_PACKAGES: ${{ runner.temp }}/cli-packages
run: |
test -d "$ALCHEMY_CLI_PACKAGES"
for manager in npm pnpm bun; do
ALCHEMY_CLI_PACKAGE_MANAGER="$manager" timeout 240 pnpm test test/Cli/package.test.ts --retry 0 --sequential
done

# Keep the directory lists in sync with the `build:pkg` script.
- name: Pack packages
id: pack
run: >-
pnpm exec pkg pack
--group 'alchemy=./packages/alchemy'
--group '@alchemy.run[Collapsed]=./packages/{better-auth,cloudflare-runtime,frontend-frameworks,node-utils,floci,pkg}'
--group '@distilled.cloud[Collapsed]=./submodules/distilled/packages/{core,aws,axiom,cloudflare,fly-io,github,hetzner,neon,planetscale,railway,stripe}'

- name: Vouch for the manifest
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ steps.pack.outputs.artifact-name }}
path: .pkg/pkg-manifest.json
include-hidden-files: true
if-no-files-found: error
retention-days: 1

- name: Publish packages
run: pnpm exec pkg publish
123 changes: 0 additions & 123 deletions .repos/alchemy-effect/.github/workflows/pr-package.yml

This file was deleted.

Loading
Loading