Skip to content

Commit b450534

Browse files
tinmancodingopencode
andcommitted
fix: configure Git to use main as default branch in CI
This resolves integration test failures where tests expected 'main' branch but Git was creating repositories with 'master' as default. 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <noreply@opencode.ai>
1 parent 25f8ac1 commit b450534

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
with:
2121
enable-cache: true
2222

23+
- name: Configure Git to use main as default branch
24+
run: git config --global init.defaultBranch main
25+
2326
- name: Lint check
2427
run: devbox run lint
2528

@@ -28,10 +31,10 @@ jobs:
2831

2932
- name: Unit tests
3033
run: devbox run test:unit
31-
34+
3235
- name: Build for integration tests
3336
run: devbox run build
34-
37+
3538
- name: Integration tests
3639
run: devbox run test:integration
3740

@@ -54,8 +57,11 @@ jobs:
5457
with:
5558
enable-cache: true
5659

60+
- name: Configure Git to use main as default branch
61+
run: git config --global init.defaultBranch main
62+
5763
- name: Build for integration tests
5864
run: devbox run build
59-
65+
6066
- name: Integration tests
6167
run: devbox run test:integration

0 commit comments

Comments
 (0)