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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@ jobs:
- name: "Build Docs"
run: "just docs"

- name: Check for uncommitted changes
run: |
if [[ -n "$(git status --porcelain)" ]]; then
echo "Uncommitted changes detected, please run \`just docs\` and commit the changes."
git status
exit 1
else
echo "No uncommitted changes."
fi

- name: "MD Link Linter"
uses: "docker://norberttech/md-link-linter@sha256:bf17e53dd716dcc2f0a41ed45af3e7bfc06b56b40fe6d8064b29646c1582c54c" # latest as of 2026-09-25
with:
Expand Down
45 changes: 42 additions & 3 deletions .github/workflows/test-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,43 @@ jobs:
path: "web/landing/assets/wasm/tools/flow.phar"
retention-days: 1

build-docs:
runs-on: ubuntu-24.04

steps:
- name: "Checkout"
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: "Setup PHP Environment"
uses: "./.github/actions/setup-php-env"
with:
php-version: "8.3"
dependencies: "locked"
coverage: "none"
extensions: ':psr, bcmath, curl, dom, hash, json, mbstring, pdo_sqlite, xml, xmlwriter, xmlreader, zip, zlib'
cache-key-suffix: "-locked"
extra-working-directory: "web/landing"
extra-cache-key-suffix: "-website"
extra-composer-file: "web/landing/composer.lock"

- name: "Build Docs"
run: "just docs"

- name: "Upload generated docs"
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: "website-flow-docs"
path: |
web/landing/resources/api.json
web/landing/resources/dsl.json
web/landing/resources/php.json
web/landing/assets/codemirror/completions/flow-api.js
retention-days: 1

website-tests:
needs: build-phar
needs: [build-phar, build-docs]
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -108,14 +143,18 @@ jobs:
timeout 30 bash -c 'until curl -s http://localhost:8787 > /dev/null; do sleep 1; done'
working-directory: "terraform/cloudflare/workers"

# replaces the committed phar so the playground runs this commit's Flow, not whatever was
# last checked in
- name: "Download Flow PHAR"
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: "website-flow-phar"
path: "web/landing/assets/wasm/tools"

- name: "Download generated docs"
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: "website-flow-docs"
path: "web/landing"

# the website suite runs on the monorepo phpunit, not a copy of its own
- name: "Install PHPUnit"
run: "composer install --working-dir=tools/phpunit"
Expand Down
2 changes: 2 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ fix:
# Build the Flow PHAR archive and copy it into the landing site assets.
phar:
bin/build-phar.sh
mkdir -p web/landing/assets/wasm/tools
cp ./build/flow.phar ./web/landing/assets/wasm/tools/flow.phar

# Build the WASM artifact (also rebuilds the PHAR).
Expand Down Expand Up @@ -136,6 +137,7 @@ docs:
bin/docs.php dsl:dump web/landing/resources/dsl.json
bin/docs.php api:dump web/landing/resources/api.json
bin/docs.php php:dump web/landing/resources/php.json
mkdir -p web/landing/assets/codemirror/completions
web/landing/bin/console app:generate:code-completion

# Generate phpDocumentor API docs for every package config under phpdoc/.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ public function test_it_memoises_the_tree_per_cardinality_and_row_count(Partitio
}

#[DataProvider('cardinalities')]
public function test_the_write_scenario_partitions_by_its_cardinality_column(PartitionCardinality $cardinality): void
{
public function test_the_write_scenario_partitions_by_its_cardinality_column(
PartitionCardinality $cardinality,
): void {
try {
$root = (new PartitionedWriteScenario($cardinality, self::ROWS))->run();
$partitions = glob($root . '/*') ?: [];
Expand Down
Loading
Loading