feat: automatically create default branch worktree on init #9
Workflow file for this run
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: | |
| branches: [ main ] | |
| jobs: | |
| quality-checks: | |
| name: Quality Checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install devbox | |
| uses: jetify-com/devbox-install-action@v0.12.0 | |
| with: | |
| enable-cache: true | |
| - name: Configure Git to use main as default branch | |
| run: git config --global init.defaultBranch main | |
| - name: Lint check | |
| run: devbox run lint | |
| - name: Type check | |
| run: devbox run type-check | |
| - name: Unit tests | |
| run: devbox run test:unit | |
| - name: Build verification | |
| run: devbox run build | |
| cross-platform-test: | |
| name: Cross-Platform Integration Tests | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install devbox | |
| uses: jetify-com/devbox-install-action@v0.12.0 | |
| with: | |
| enable-cache: true | |
| - name: Configure Git to use main as default branch | |
| run: git config --global init.defaultBranch main | |
| - name: Build for integration tests | |
| run: devbox run build | |
| - name: Integration tests | |
| run: devbox run test:integration |