Skip to content

Commit bc5b005

Browse files
authored
add cookiecutter package, add extensions dev new smoke test (#13)
1 parent 0839a6a commit bc5b005

4 files changed

Lines changed: 22 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
brew install docker
7676
colima start
7777
78-
- name: Non-Docker Smoke tests
78+
- name: Community Non-Docker Smoke tests
7979
shell: bash
8080
run: |
8181
ls dist-bin/
@@ -85,6 +85,18 @@ jobs:
8585
# show the config
8686
./localstack config show
8787
88+
- name: Pro Non-Docker Smoke tests
89+
shell: bash
90+
# Skip these checks for forks (forks do not have access to the LocalStack Pro API key)
91+
if: ${{ ! github.event.pull_request.head.repo.fork }}
92+
run: |
93+
# create an extension with default parameters (enter all new lines to use defaults)
94+
printf "\n\n\n\n\n\n\n\n" | LOCALSTACK_API_KEY=${{ secrets.TEST_LOCALSTACK_API_KEY }} DEBUG=1 ./dist-bin/localstack extensions dev new
95+
# print the directory output
96+
ls -al my-localstack-extension
97+
# remove it again
98+
rm -rf my-localstack-extension
99+
88100
- name: Community Docker Smoke tests (Linux, MacOS)
89101
shell: bash
90102
# GitHub Windows and xlarge MacOS runner cannot run Docker containers:

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ $(VENV_ACTIVATE): requirements.txt
2323
dist-bin/localstack build: $(VENV_ACTIVATE) main.py
2424
$(VENV_RUN); pyinstaller main.py \
2525
$(PYINSTALLER_ARGS) -n localstack \
26+
--hidden-import cookiecutter.main \
27+
--hidden-import cookiecutter.extensions \
2628
--hidden-import localstack_ext.cli.localstack \
2729
--additional-hooks-dir hooks
2830

hooks/hook-cookiecutter.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import os
2+
3+
from PyInstaller.utils.hooks import collect_data_files
4+
5+
datas = collect_data_files('cookiecutter')

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
pyinstaller
2-
localstack==2.3.2
2+
localstack==2.3.2
3+
cookiecutter

0 commit comments

Comments
 (0)