From 5615fcb52d5ce48edc710ac8476511e99ade91ab Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Thu, 18 Jun 2026 16:35:46 +0100 Subject: [PATCH] Set up miniflare in CI consistently with the other extensions --- .github/workflows/miniflare.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/miniflare.yml b/.github/workflows/miniflare.yml index 8bf2744a..6c815731 100644 --- a/.github/workflows/miniflare.yml +++ b/.github/workflows/miniflare.yml @@ -12,32 +12,29 @@ on: - miniflare/** workflow_dispatch: +env: + LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }} + jobs: tests-miniflare: name: Run extension tests runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 - - - name: Set up Python 3.x - id: setup-python - uses: actions/setup-python@v4 + uses: actions/checkout@v6 with: - python-version: '3.13' + persist-credentials: true - name: Install LocalStack and extension - env: - LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }} run: | + cd miniflare + docker pull localstack/localstack-pro & - pip install localstack localstack-ext + pip install localstack - branchName=${GITHUB_HEAD_REF##*/} - if [ "$branchName" = "" ]; then branchName=main; fi - echo "Installing from branch name $branchName" - localstack extensions init - localstack extensions install "git+https://github.com/localstack/localstack-extensions.git@"$branchName"#egg=localstack-extension-miniflare&subdirectory=miniflare" + make install + make dist + localstack extensions -v install file://$(ls ./dist/localstack_extension_miniflare-*.tar.gz) DEBUG=1 localstack start -d localstack wait