Add project-scoped vault payment commands #1028
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: Run tests for the CLI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: "go.mod" | |
| cache: false | |
| - name: Create read-only token for the preview SDK | |
| id: sdk-token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| app-id: ${{ secrets.ADMIN_APP_ID }} | |
| private-key: ${{ secrets.ADMIN_APP_PRIVATE_KEY }} | |
| repositories: kernel-go-sdk-staging | |
| permission-contents: read | |
| - name: Run tests | |
| env: | |
| GOPRIVATE: github.com/kernel/kernel-go-sdk-staging | |
| GH_TOKEN: ${{ steps.sdk-token.outputs.token }} | |
| run: | | |
| gh auth setup-git | |
| make test |