server: return permissions on session creation via api #40
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/Lint | |
| on: | |
| push: | |
| branches: ["*"] | |
| pull_request: | |
| branches: ["*"] | |
| permissions: | |
| pull-requests: read | |
| jobs: | |
| changes: | |
| name: Check for Changes | |
| runs-on: ubuntu-latest | |
| outputs: | |
| server: ${{ steps.filter.outputs.server }} | |
| cli: ${{ steps.filter.outputs.cli }} | |
| web: ${{ steps.filter.outputs.web }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dorny/paths-filter@v4 | |
| id: filter | |
| with: | |
| filters: | | |
| server: | |
| - "server/**" | |
| cli: | |
| - "cli/**" | |
| web: | |
| - "web/**" | |
| server-test: | |
| name: Test Server | |
| needs: changes | |
| if: ${{ needs.changes.outputs.server == 'true' }} | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: "./server" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v5 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: "pnpm" | |
| cache-dependency-path: "server/pnpm-lock.yaml" | |
| - run: pnpm install --frozen-lockfile | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Check Types | |
| run: pnpm check-types | |
| cli-test: | |
| name: Test CLI | |
| needs: changes | |
| if: ${{ needs.changes.outputs.cli == 'true' }} | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: "./cli" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: stable | |
| cache: true | |
| - run: go mod download | |
| - name: Vet | |
| run: go vet -v ./... | |
| web-test: | |
| name: Test Web Panel | |
| needs: changes | |
| if: ${{ needs.changes.outputs.web == 'true' }} | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: "./web" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v5 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: "pnpm" | |
| cache-dependency-path: "web/pnpm-lock.yaml" | |
| - run: pnpm install --frozen-lockfile | |
| - name: Lint | |
| run: pnpm lint |