Skip to content

Commit

Permalink
add cookiecutter package, add extensions dev new smoke test (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrashed authored Oct 16, 2023
1 parent 0839a6a commit bc5b005
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
brew install docker
colima start
- name: Non-Docker Smoke tests
- name: Community Non-Docker Smoke tests
shell: bash
run: |
ls dist-bin/
Expand All @@ -85,6 +85,18 @@ jobs:
# show the config
./localstack config show
- name: Pro Non-Docker Smoke tests
shell: bash
# Skip these checks for forks (forks do not have access to the LocalStack Pro API key)
if: ${{ ! github.event.pull_request.head.repo.fork }}
run: |
# create an extension with default parameters (enter all new lines to use defaults)
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
# print the directory output
ls -al my-localstack-extension
# remove it again
rm -rf my-localstack-extension
- name: Community Docker Smoke tests (Linux, MacOS)
shell: bash
# GitHub Windows and xlarge MacOS runner cannot run Docker containers:
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ $(VENV_ACTIVATE): requirements.txt
dist-bin/localstack build: $(VENV_ACTIVATE) main.py
$(VENV_RUN); pyinstaller main.py \
$(PYINSTALLER_ARGS) -n localstack \
--hidden-import cookiecutter.main \
--hidden-import cookiecutter.extensions \
--hidden-import localstack_ext.cli.localstack \
--additional-hooks-dir hooks

Expand Down
5 changes: 5 additions & 0 deletions hooks/hook-cookiecutter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import os

from PyInstaller.utils.hooks import collect_data_files

datas = collect_data_files('cookiecutter')
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pyinstaller
localstack==2.3.2
localstack==2.3.2
cookiecutter

0 comments on commit bc5b005

Please sign in to comment.