Skip to content

Commit

Permalink
Setup SDK generation (#6)
Browse files Browse the repository at this point in the history
* Setup generation flow

* Add generate shell script

* Generate SDK

* Transfer tests

* ci: Format code

* Install deps during generate workflow

* ci: Generate code

* Update generator to fix package version retrieval

* Disable some lint rules

* Update generator to fix lint

* Update generator to add missing wait_for_action_attempt to abstract methods

* Test wait_for_action_attempt options

* ci: Generate code

* Update generator to allow setting wait_for_action_attempt on client level + refactored polling logic

* Update generator to fix lint

* Update generate workflow

* Remove --rcfile from lint command

* Modify generate and format scripts

* Pin generator and seam types versions

* ci: Generate code

* Fix devices test, extend init seam test

* Fix init seam test

* Terminate generate script immediately if any command exits with a non-zero status

* Rename .pylintrc to pylintrc

* Update generate script

* Update generator to remove /health endpoints and fix wait_for_action_attempt type

* ci: Generate code

---------

Co-authored-by: Seam Bot <[email protected]>
  • Loading branch information
andrii-balitskyi and seambot authored Apr 5, 2024
1 parent 74e535b commit d0e7822
Show file tree
Hide file tree
Showing 61 changed files with 6,776 additions and 45 deletions.
20 changes: 9 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
---
version: 2
updates:
- package-ecosystem: npm
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: daily
commit-message:
prefix: feat
include: scope
interval: 'daily'
target-branch: 'main'
versioning-strategy: 'auto'
allow:
- dependency-type: production
- dependency-name: '@seamapi/*'
dependency-type: 'development'
ignore:
- dependency-name: '*'
update-types:
- 'version-update:semver-major'
- dependency-name: '@seamapi/*'
update-types: ['version-update:semver-major']
groups:
seam:
dependency-type: production
dependency-type: development
update-types:
- patch
- minor
4 changes: 4 additions & 0 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
run: npm install
- name: Generate code
run: npm run generate
- name: Install dependencies
run: poetry install --sync
- name: Format
run: make format
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down
Loading

0 comments on commit d0e7822

Please sign in to comment.