fix: wasm runtime compilation with latest version of pg_query extension #1553
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| pull_request: | |
| paths: | |
| - 'web/**' | |
| push: | |
| branches: [ 1.x ] | |
| paths: | |
| - 'web/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| website-tests: | |
| runs-on: ${{ matrix.operating-system }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-version: | |
| - "8.2" | |
| operating-system: | |
| - "ubuntu-latest" | |
| steps: | |
| - name: "Checkout" | |
| uses: "actions/checkout@v5" | |
| with: | |
| fetch-depth: 0 | |
| - name: "Get Flow Version" | |
| id: flow_version | |
| uses: "WyriHaximus/github-action-get-previous-tag@v1" | |
| with: | |
| fallback: 1.x-dev | |
| - name: "Setup PHP Environment" | |
| uses: "./.github/actions/setup-php-env" | |
| with: | |
| php-version: "${{ matrix.php-version }}" | |
| dependencies: "locked" | |
| coverage: "pcov" | |
| working-directory: "web/landing" | |
| cache-key-suffix: "-website" | |
| composer-file: "web/landing/composer.lock" | |
| - name: "Setup Node.js" | |
| uses: "actions/setup-node@v4" | |
| with: | |
| node-version: "20" | |
| - name: "Create Wrangler dev.vars" | |
| run: | | |
| cat > .dev.vars << EOF | |
| TURNSTILE_SECRET_KEY=dummy | |
| TURNSTILE_MODE=bypass | |
| ENABLE_R2_PROXY=true | |
| RATE_LIMITER_MODE=bypass | |
| EOF | |
| working-directory: "terraform/cloudflare/workers" | |
| - name: "Start Wrangler in background" | |
| run: | | |
| npx wrangler@latest dev --port 8787 > wrangler.log 2>&1 & | |
| echo $! > wrangler.pid | |
| # Wait for wrangler to be ready | |
| timeout 30 bash -c 'until curl -s http://localhost:8787 > /dev/null; do sleep 1; done' | |
| working-directory: "terraform/cloudflare/workers" | |
| - name: "Test" | |
| run: "composer test" | |
| working-directory: "web/landing" | |
| env: | |
| PLAYGROUND_API_URL: "http://localhost:8787/api/playground/snippets" | |
| PLAYGROUND_SNIPPETS_URL: "http://localhost:8787" | |
| - name: "Stop Wrangler" | |
| if: always() | |
| run: | | |
| if [ -f wrangler.pid ]; then | |
| kill $(cat wrangler.pid) || true | |
| fi | |
| if [ -f wrangler.log ]; then | |
| echo "=== Wrangler Logs ===" | |
| cat wrangler.log | |
| fi | |
| working-directory: "terraform/cloudflare/workers" | |
| - name: "Test Build" | |
| run: "composer build" | |
| working-directory: "web/landing" | |
| env: | |
| SCHEME: https | |
| DOMAIN: flow-php.com | |
| FLOW_VERSION: ${{ steps.flow_version.outputs.tag }} |