@@ -23,9 +23,13 @@ func hasDeprecatedAppFieldInContent(content string) bool {
2323}
2424
2525func TestGitHubAppCodemod (t * testing.T ) {
26+ t .Parallel ()
27+
2628 codemod := getGitHubAppCodemod ()
2729
2830 t .Run ("renames app to github-app under tools.github" , func (t * testing.T ) {
31+ t .Parallel ()
32+
2933 content := `---
3034engine: copilot
3135tools:
5963 })
6064
6165 t .Run ("renames app to github-app under safe-outputs" , func (t * testing.T ) {
66+ t .Parallel ()
67+
6268 content := `---
6369engine: copilot
6470safe-outputs:
@@ -89,6 +95,8 @@ safe-outputs:
8995 })
9096
9197 t .Run ("renames app to github-app under checkout" , func (t * testing.T ) {
98+ t .Parallel ()
99+
92100 content := `---
93101engine: copilot
94102checkout:
@@ -117,6 +125,8 @@ checkout:
117125 })
118126
119127 t .Run ("renames top-level app to github-app" , func (t * testing.T ) {
128+ t .Parallel ()
129+
120130 content := `---
121131engine: copilot
122132app:
142152 })
143153
144154 t .Run ("does not modify workflows without app field" , func (t * testing.T ) {
155+ t .Parallel ()
156+
145157 content := `---
146158engine: copilot
147159tools:
@@ -169,6 +181,8 @@ tools:
169181 })
170182
171183 t .Run ("does not modify app field outside target sections" , func (t * testing.T ) {
184+ t .Parallel ()
185+
172186 content := `---
173187engine: copilot
174188tools:
@@ -194,6 +208,8 @@ tools:
194208 })
195209
196210 t .Run ("renames app in all three sections" , func (t * testing.T ) {
211+ t .Parallel ()
212+
197213 content := `---
198214engine: copilot
199215tools:
@@ -239,6 +255,8 @@ safe-outputs:
239255 })
240256
241257 t .Run ("does not rename already migrated github-app field" , func (t * testing.T ) {
258+ t .Parallel ()
259+
242260 content := `---
243261engine: copilot
244262tools:
@@ -271,6 +289,8 @@ tools:
271289 })
272290
273291 t .Run ("renames app to github-app inside checkout array item" , func (t * testing.T ) {
292+ t .Parallel ()
293+
274294 content := `---
275295engine: copilot
276296checkout:
@@ -303,6 +323,8 @@ checkout:
303323 })
304324
305325 t .Run ("preserves comments and formatting" , func (t * testing.T ) {
326+ t .Parallel ()
327+
306328 content := `---
307329engine: copilot
308330tools:
@@ -337,6 +359,8 @@ tools:
337359 })
338360
339361 t .Run ("renames top-level app and nested app in the same document" , func (t * testing.T ) {
362+ t .Parallel ()
363+
340364 content := `---
341365engine: copilot
342366app:
0 commit comments