Skip to content

Commit

Permalink
Feature/bundled js (#3)
Browse files Browse the repository at this point in the history
* now bundling JS

* dev command

* fixed test setup

* tests should work with env vars now

* tests fixed locally

* add dotenv dependency in correct place

* run on warpbuild

* remove yarn - using npm for this project

* remove server.log

* removed server.log

* output server logs
  • Loading branch information
glitch003 authored Jan 4, 2025
1 parent c644220 commit c60e6d7
Show file tree
Hide file tree
Showing 17 changed files with 291,992 additions and 2,302 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LIT_POLYGLOT_SDK_TEST_PRIVATE_KEY="<a test private key with Lit tokens>"
4 changes: 3 additions & 1 deletion .github/workflows/js-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: warp-ubuntu-latest-x64-2x

steps:
- uses: actions/checkout@v3
Expand All @@ -30,4 +30,6 @@ jobs:

- name: Run tests
working-directory: js-sdk-server
env:
LIT_POLYGLOT_SDK_TEST_PRIVATE_KEY: ${{ secrets.LIT_POLYGLOT_SDK_TEST_PRIVATE_KEY }}
run: npm test
8 changes: 7 additions & 1 deletion .github/workflows/python-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: warp-ubuntu-latest-x64-2x
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
Expand All @@ -35,5 +35,11 @@ jobs:
- name: Run tests
working-directory: python
env:
LIT_POLYGLOT_SDK_TEST_PRIVATE_KEY: ${{ secrets.LIT_POLYGLOT_SDK_TEST_PRIVATE_KEY }}
run: |
pytest tests/ -v
if [ -f lit_python_sdk/server.log ]; then
echo "Server log contents:"
cat lit_python_sdk/server.log
fi
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# general
lit-session-storage/
server.log

# IDE
.idea/
Expand All @@ -36,4 +39,8 @@ lit-session-storage/
*.swo

# Mac
.DS_Store
.DS_Store

# misc
.env
.env.local
Loading

0 comments on commit c60e6d7

Please sign in to comment.