diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7cc335e..78b1deb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/ @@ -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: diff --git a/Makefile b/Makefile index a8d3fc0..45168d8 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/hooks/hook-cookiecutter.py b/hooks/hook-cookiecutter.py new file mode 100644 index 0000000..b477b66 --- /dev/null +++ b/hooks/hook-cookiecutter.py @@ -0,0 +1,5 @@ +import os + +from PyInstaller.utils.hooks import collect_data_files + +datas = collect_data_files('cookiecutter') \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 6988a99..e1fe7c3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ pyinstaller -localstack==2.3.2 \ No newline at end of file +localstack==2.3.2 +cookiecutter