fix: resolve CI failures in TypeDB, WireMock, and Miniflare #88
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
| name: LocalStack Miniflare Extension Tests | |
| on: | |
| push: | |
| paths: | |
| - miniflare/** | |
| branches: | |
| - main | |
| pull_request: | |
| paths: | |
| - .github/workflows/miniflare.yml | |
| - miniflare/** | |
| workflow_dispatch: | |
| 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 | |
| with: | |
| python-version: '3.13' | |
| - name: Install LocalStack and extension | |
| env: | |
| LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }} | |
| run: | | |
| docker pull localstack/localstack-pro & | |
| sudo apt-get install -y libvirt-dev | |
| pip install localstack localstack-ext | |
| localstack extensions init | |
| localstack extensions install "file://$(pwd)/miniflare" | |
| DEBUG=1 localstack start -d | |
| localstack wait | |
| curl http://localhost:4566/_localstack/health | |
| curl --fail http://localhost:4566/miniflare/user | |
| - name: Run test | |
| env: | |
| CLOUDFLARE_API_TOKEN: test | |
| CLOUDFLARE_API_BASE_URL: "http://localhost:4566/miniflare" | |
| run: | | |
| cd miniflare/example | |
| npm install | |
| npm run deploy | |
| curl http://hello.miniflare.localhost.localstack.cloud:4566/test | grep 'Hello World' | |
| - name: Print LocalStack logs | |
| if: always() | |
| run: localstack logs |