Skip to content

Commit 298677e

Browse files
authored
Set up miniflare in CI consistently with the other extensions (#144)
1 parent 9e972bc commit 298677e

1 file changed

Lines changed: 11 additions & 14 deletions

File tree

.github/workflows/miniflare.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,29 @@ on:
1414
- miniflare/**
1515
workflow_dispatch:
1616

17+
env:
18+
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
19+
1720
jobs:
1821
tests-miniflare:
1922
name: Run extension tests
2023
runs-on: ubuntu-latest
2124
steps:
2225
- name: Checkout
23-
uses: actions/checkout@v3
24-
25-
- name: Set up Python 3.x
26-
id: setup-python
27-
uses: actions/setup-python@v4
26+
uses: actions/checkout@v6
2827
with:
29-
python-version: '3.13'
28+
persist-credentials: true
3029

3130
- name: Install LocalStack and extension
32-
env:
33-
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
3431
run: |
32+
cd miniflare
33+
3534
docker pull localstack/localstack-pro &
36-
pip install localstack localstack-ext
35+
pip install localstack
3736
38-
branchName=${GITHUB_HEAD_REF##*/}
39-
if [ "$branchName" = "" ]; then branchName=main; fi
40-
echo "Installing from branch name $branchName"
41-
localstack extensions init
42-
localstack extensions install "git+https://github.com/localstack/localstack-extensions.git@"$branchName"#egg=localstack-extension-miniflare&subdirectory=miniflare"
37+
make install
38+
make dist
39+
localstack extensions -v install file://$(ls ./dist/localstack_extension_miniflare-*.tar.gz)
4340
4441
DEBUG=1 localstack start -d
4542
localstack wait

0 commit comments

Comments
 (0)