Generate js bindings #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Swagger | |
on: [pull_request] | |
jobs: | |
swagger: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11.x' | |
- name: Install make | |
run: | | |
sudo apt-get update | |
sudo apt-get install make | |
- name: Install the package | |
run: | | |
python -m pip install --upgrade pip | |
pip install pdm | |
make install | |
- name: Re-generate swagger.json | |
run: | | |
diff -u swagger.json <(pdm run swagger) | |
- name: Re-generate bindings | |
run: | | |
make swagger-all |