feat(apply): migrate a group's type through POST /groups/{id}/groupty… #265
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| # A newer push to the same PR supersedes the run in flight, so cancel it rather than | |
| # let both occupy the org's concurrent-job slots. Pushes to main are never cancelled: | |
| # every main commit keeps its own result. That needs a per-commit group for pushes — | |
| # a shared group still holds only one pending run and cancels the older pending one | |
| # when a third arrives, even with cancel-in-progress off. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| # Least privilege: this workflow only ever reads the checkout. Without an explicit | |
| # block the token inherits the org default, which is often read-write. | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run format:check | |
| - run: npm run lint | |
| - run: npm run typecheck | |
| - run: npm test | |
| - run: npm run build |