Test CNB API #1
This file contains hidden or 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: Test CNB API | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Test ListPackages API | |
| run: | | |
| echo "=== Test: ListPackages ===" | |
| curl -s --compressed \ | |
| -H "Accept: application/vnd.cnb.api+json" \ | |
| -H "Authorization: Bearer ${{ secrets.CNB_NPM_TOKEN }}" \ | |
| "https://api.cnb.cool/GameFrameX/npm/-/packages?type=npm&page=1&page_size=100" | python3 -m json.tool | |
| echo "" | |
| echo "=== Test: ListPackages with name filter ===" | |
| curl -s --compressed \ | |
| -H "Accept: application/vnd.cnb.api+json" \ | |
| -H "Authorization: Bearer ${{ secrets.CNB_NPM_TOKEN }}" \ | |
| "https://api.cnb.cool/GameFrameX/npm/-/packages?type=npm&page=1&page_size=100&name=com.gameframex" | python3 -m json.tool |