Skip to content

Commit eb6e82b

Browse files
committed
Add tests for all remote_option scenarios
1 parent 655f143 commit eb6e82b

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/test-template.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,20 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17+
remote_option: ["GitHub", "manual", "No"]
18+
remote_github_protocol: ["https", "ssh"]
1719
use_precommit: [true, false]
1820
env_init: [true, false]
21+
exclude:
22+
# Exclude "No" + "manual" from using any protocol
23+
- remote_option: "No"
24+
remote_github_protocol: "ssh"
25+
- remote_option: "No"
26+
remote_github_protocol: "https"
27+
- remote_option: "manual"
28+
remote_github_protocol: "ssh"
29+
- remote_option: "manual"
30+
remote_github_protocol: "https"
1931

2032
steps:
2133
- name: 🛎️ Checkout Repository
@@ -35,12 +47,15 @@ jobs:
3547
- name: 🚀 Generate Project with
3648
run: |
3749
uvx copier copy --trust --force . ${{ env.PROJECT_NAME }} \
38-
-d push_to_repo=false \
50+
-d remote_option=${{ matrix.remote_option }} \
51+
-d remote_github_protocol=${{ matrix.remote_github_protocol }} \
52+
-d remote_github_username=grok-ai \
53+
-d remote_github_project=dummy-repo \
54+
-d manual_remote=https://github.com/grok-ai/dummy-repo \
55+
-d push_to_remote=false \
3956
-d use_precommit=${{ matrix.use_precommit }} \
4057
-d env_init=${{ matrix.env_init }}
4158
42-
43-
4459
- name: 🛠️ Check Git Initialization
4560
working-directory: ${{ env.PROJECT_NAME }}
4661
run: |

0 commit comments

Comments
 (0)