@dword-design/base 12.2.0 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +68 -68
  2. package/dist/cli.js +6 -7
  3. package/dist/commands/check-unknown-files/index.js +9 -13
  4. package/dist/commands/check-unknown-files/unknown-files-error.js +3 -3
  5. package/dist/commands/commit/index.js +2 -2
  6. package/dist/commands/depcheck/index.js +16 -16
  7. package/dist/commands/prepare/index.js +3 -5
  8. package/dist/commands/test-docker/index.js +5 -11
  9. package/dist/commands/test-raw/index.js +5 -18
  10. package/dist/get-depcheck-special-base/index.js +2 -5
  11. package/dist/get-generated-files/babel.js +5 -1
  12. package/dist/get-generated-files/common-editor-ignore.js +1 -1
  13. package/dist/get-generated-files/editorconfig.js +1 -1
  14. package/dist/get-generated-files/get-editor-ignore/index.js +2 -3
  15. package/dist/get-generated-files/get-eslint/index.js +3 -3
  16. package/dist/get-generated-files/get-github-workflow/steps/get-release.js +3 -5
  17. package/dist/get-generated-files/get-github-workflow/steps/get-test.js +3 -11
  18. package/dist/get-generated-files/get-github-workflow/strategies/job-matrix.js +2 -4
  19. package/dist/get-generated-files/get-gitignore/index.js +2 -3
  20. package/dist/get-generated-files/get-gitpod/index.js +1 -1
  21. package/dist/get-generated-files/get-gitpod-dockerfile.js +1 -1
  22. package/dist/get-generated-files/get-license-string.js +1 -1
  23. package/dist/get-generated-files/get-package-config/index.js +5 -7
  24. package/dist/get-generated-files/get-readme-string/index.js +13 -13
  25. package/dist/get-generated-files/get-readme-string/replacements.js +97 -99
  26. package/dist/get-generated-files/get-renovate/index.js +2 -2
  27. package/dist/get-generated-files/get-vscode/index.js +1 -3
  28. package/dist/get-generated-files/gitattributes.js +1 -1
  29. package/dist/get-generated-files/github-deprecated-dependencies-issue-template.js +1 -1
  30. package/dist/get-generated-files/github-labels.js +6 -10
  31. package/dist/get-generated-files/index.js +24 -42
  32. package/dist/get-generated-files/typescript.js +12 -1
  33. package/dist/index.js +85 -43
  34. package/dist/load-config/index.js +4 -2
  35. package/dist/load-config-sync/index.js +4 -2
  36. package/package.json +18 -29
  37. package/dist/__snapshots__/index.spec.js.snap +0 -84
  38. package/dist/commands/prepare/__snapshots__/index.spec.js.snap +0 -143
  39. package/dist/commands/test-raw/__snapshots__/index.spec.js.snap +0 -53
  40. package/dist/get-generated-files/__snapshots__/index.spec.js.snap +0 -57
  41. package/dist/get-generated-files/get-editor-ignore/__snapshots__/index.spec.js.snap +0 -29
  42. package/dist/get-generated-files/get-github-sync-metadata/__snapshots__/index.spec.js.snap +0 -72
  43. package/dist/get-generated-files/get-github-workflow/__snapshots__/index.spec.js.snap +0 -1133
  44. package/dist/get-generated-files/get-gitignore/__snapshots__/index.spec.js.snap +0 -13
  45. package/dist/get-generated-files/get-gitpod/__snapshots__/index.spec.js.snap +0 -32
  46. package/dist/get-generated-files/get-package-config/__snapshots__/index.spec.js.snap +0 -116
  47. package/dist/get-generated-files/get-readme-string/__snapshots__/index.spec.js.snap +0 -236
  48. package/dist/get-generated-files/get-vscode/__snapshots__/index.spec.js.snap +0 -35
  49. package/dist/get-generated-files/github-deprecated-dependencies/__snapshots__/index.spec.js.snap +0 -57
@@ -1,1133 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`index job matrix 1`] = `
4
- Object {
5
- "concurrency": Object {
6
- "cancel-in-progress": true,
7
- "group": "\${{ github.workflow }}-\${{ github.ref }}",
8
- },
9
- "jobs": Object {
10
- "release": Object {
11
- "needs": "test",
12
- "runs-on": "ubuntu-latest",
13
- "steps": Array [
14
- Object {
15
- "uses": "actions/checkout@v4",
16
- "with": Object {
17
- "lfs": true,
18
- "ref": "\${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || '' }}",
19
- },
20
- },
21
- Object {
22
- "uses": "actions/setup-node@v4",
23
- "with": Object {
24
- "node-version": 20,
25
- },
26
- },
27
- Object {
28
- "run": "corepack enable",
29
- },
30
- Object {
31
- "run": "git config --global user.email \\"actions@github.com\\"",
32
- },
33
- Object {
34
- "run": "git config --global user.name \\"GitHub Actions\\"",
35
- },
36
- Object {
37
- "run": "pnpm install --frozen-lockfile",
38
- },
39
- Object {
40
- "run": "pnpm checkUnknownFiles",
41
- },
42
- Object {
43
- "run": "pnpm lint",
44
- },
45
- Object {
46
- "env": Object {
47
- "GITHUB_REPOSITORY": "\${{ secrets.GITHUB_REPOSITORY }}",
48
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
49
- },
50
- "name": "Push changed files",
51
- "run": "pnpm dw-ci push-changed-files",
52
- },
53
- Object {
54
- "env": Object {
55
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
56
- },
57
- "if": "github.ref == 'refs/heads/master'",
58
- "name": "Release",
59
- "run": "pnpm semantic-release",
60
- },
61
- ],
62
- },
63
- "test": Object {
64
- "runs-on": "\${{ matrix.os }}",
65
- "steps": Array [
66
- Object {
67
- "uses": "actions/checkout@v4",
68
- "with": Object {
69
- "lfs": true,
70
- },
71
- },
72
- Object {
73
- "uses": "actions/setup-node@v4",
74
- "with": Object {
75
- "check-latest": true,
76
- "node-version": "\${{ matrix.node }}",
77
- },
78
- },
79
- Object {
80
- "run": "corepack enable",
81
- },
82
- Object {
83
- "run": "pnpm install --frozen-lockfile",
84
- },
85
- Object {
86
- "env": Object {
87
- "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
88
- },
89
- "run": "pnpm test",
90
- },
91
- Object {
92
- "if": "always()",
93
- "uses": "actions/upload-artifact@v4",
94
- "with": Object {
95
- "if-no-files-found": "ignore",
96
- "name": "Images from tests",
97
- "path": "**/__image_snapshots__/__diff_output__
98
- test-results/*/**",
99
- },
100
- },
101
- Object {
102
- "if": "matrix.os == 'ubuntu-latest' && matrix.node == 20",
103
- "uses": "codecov/codecov-action@v3",
104
- "with": Object {
105
- "token": "\${{ secrets.CODECOV_TOKEN }}",
106
- },
107
- },
108
- ],
109
- "strategy": Object {
110
- "matrix": Object {
111
- "include": Array [
112
- Object {
113
- "node": 18,
114
- "os": "ubuntu-latest",
115
- },
116
- Object {
117
- "node": 20,
118
- "os": "ubuntu-latest",
119
- },
120
- Object {
121
- "node": 20,
122
- "os": "macos-latest",
123
- },
124
- Object {
125
- "node": 20,
126
- "os": "windows-latest",
127
- },
128
- ],
129
- },
130
- },
131
- },
132
- },
133
- "name": "build",
134
- "on": Object {
135
- "pull_request": Object {},
136
- "push": Object {
137
- "branches": Array [
138
- "master",
139
- ],
140
- },
141
- },
142
- }
143
- `;
144
-
145
- exports[`index job matrix no macos 1`] = `
146
- Object {
147
- "concurrency": Object {
148
- "cancel-in-progress": true,
149
- "group": "\${{ github.workflow }}-\${{ github.ref }}",
150
- },
151
- "jobs": Object {
152
- "release": Object {
153
- "needs": "test",
154
- "runs-on": "ubuntu-latest",
155
- "steps": Array [
156
- Object {
157
- "uses": "actions/checkout@v4",
158
- "with": Object {
159
- "lfs": true,
160
- "ref": "\${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || '' }}",
161
- },
162
- },
163
- Object {
164
- "uses": "actions/setup-node@v4",
165
- "with": Object {
166
- "node-version": 20,
167
- },
168
- },
169
- Object {
170
- "run": "corepack enable",
171
- },
172
- Object {
173
- "run": "git config --global user.email \\"actions@github.com\\"",
174
- },
175
- Object {
176
- "run": "git config --global user.name \\"GitHub Actions\\"",
177
- },
178
- Object {
179
- "run": "pnpm install --frozen-lockfile",
180
- },
181
- Object {
182
- "run": "pnpm checkUnknownFiles",
183
- },
184
- Object {
185
- "run": "pnpm lint",
186
- },
187
- Object {
188
- "env": Object {
189
- "GITHUB_REPOSITORY": "\${{ secrets.GITHUB_REPOSITORY }}",
190
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
191
- },
192
- "name": "Push changed files",
193
- "run": "pnpm dw-ci push-changed-files",
194
- },
195
- Object {
196
- "env": Object {
197
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
198
- },
199
- "if": "github.ref == 'refs/heads/master'",
200
- "name": "Release",
201
- "run": "pnpm semantic-release",
202
- },
203
- ],
204
- },
205
- "test": Object {
206
- "runs-on": "\${{ matrix.os }}",
207
- "steps": Array [
208
- Object {
209
- "uses": "actions/checkout@v4",
210
- "with": Object {
211
- "lfs": true,
212
- },
213
- },
214
- Object {
215
- "uses": "actions/setup-node@v4",
216
- "with": Object {
217
- "check-latest": true,
218
- "node-version": "\${{ matrix.node }}",
219
- },
220
- },
221
- Object {
222
- "run": "corepack enable",
223
- },
224
- Object {
225
- "run": "pnpm install --frozen-lockfile",
226
- },
227
- Object {
228
- "env": Object {
229
- "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
230
- },
231
- "run": "pnpm test",
232
- },
233
- Object {
234
- "if": "always()",
235
- "uses": "actions/upload-artifact@v4",
236
- "with": Object {
237
- "if-no-files-found": "ignore",
238
- "name": "Images from tests",
239
- "path": "**/__image_snapshots__/__diff_output__
240
- test-results/*/**",
241
- },
242
- },
243
- Object {
244
- "if": "matrix.os == 'ubuntu-latest' && matrix.node == 20",
245
- "uses": "codecov/codecov-action@v3",
246
- "with": Object {
247
- "token": "\${{ secrets.CODECOV_TOKEN }}",
248
- },
249
- },
250
- ],
251
- "strategy": Object {
252
- "matrix": Object {
253
- "include": Array [
254
- Object {
255
- "node": 18,
256
- "os": "ubuntu-latest",
257
- },
258
- Object {
259
- "node": 20,
260
- "os": "ubuntu-latest",
261
- },
262
- Object {
263
- "node": 20,
264
- "os": "windows-latest",
265
- },
266
- ],
267
- },
268
- },
269
- },
270
- },
271
- "name": "build",
272
- "on": Object {
273
- "pull_request": Object {},
274
- "push": Object {
275
- "branches": Array [
276
- "master",
277
- ],
278
- },
279
- },
280
- }
281
- `;
282
-
283
- exports[`index job matrix no windows 1`] = `
284
- Object {
285
- "concurrency": Object {
286
- "cancel-in-progress": true,
287
- "group": "\${{ github.workflow }}-\${{ github.ref }}",
288
- },
289
- "jobs": Object {
290
- "release": Object {
291
- "needs": "test",
292
- "runs-on": "ubuntu-latest",
293
- "steps": Array [
294
- Object {
295
- "uses": "actions/checkout@v4",
296
- "with": Object {
297
- "lfs": true,
298
- "ref": "\${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || '' }}",
299
- },
300
- },
301
- Object {
302
- "uses": "actions/setup-node@v4",
303
- "with": Object {
304
- "node-version": 20,
305
- },
306
- },
307
- Object {
308
- "run": "corepack enable",
309
- },
310
- Object {
311
- "run": "git config --global user.email \\"actions@github.com\\"",
312
- },
313
- Object {
314
- "run": "git config --global user.name \\"GitHub Actions\\"",
315
- },
316
- Object {
317
- "run": "pnpm install --frozen-lockfile",
318
- },
319
- Object {
320
- "run": "pnpm checkUnknownFiles",
321
- },
322
- Object {
323
- "run": "pnpm lint",
324
- },
325
- Object {
326
- "env": Object {
327
- "GITHUB_REPOSITORY": "\${{ secrets.GITHUB_REPOSITORY }}",
328
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
329
- },
330
- "name": "Push changed files",
331
- "run": "pnpm dw-ci push-changed-files",
332
- },
333
- Object {
334
- "env": Object {
335
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
336
- },
337
- "if": "github.ref == 'refs/heads/master'",
338
- "name": "Release",
339
- "run": "pnpm semantic-release",
340
- },
341
- ],
342
- },
343
- "test": Object {
344
- "runs-on": "\${{ matrix.os }}",
345
- "steps": Array [
346
- Object {
347
- "uses": "actions/checkout@v4",
348
- "with": Object {
349
- "lfs": true,
350
- },
351
- },
352
- Object {
353
- "uses": "actions/setup-node@v4",
354
- "with": Object {
355
- "check-latest": true,
356
- "node-version": "\${{ matrix.node }}",
357
- },
358
- },
359
- Object {
360
- "run": "corepack enable",
361
- },
362
- Object {
363
- "run": "pnpm install --frozen-lockfile",
364
- },
365
- Object {
366
- "env": Object {
367
- "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
368
- },
369
- "run": "pnpm test",
370
- },
371
- Object {
372
- "if": "always()",
373
- "uses": "actions/upload-artifact@v4",
374
- "with": Object {
375
- "if-no-files-found": "ignore",
376
- "name": "Images from tests",
377
- "path": "**/__image_snapshots__/__diff_output__
378
- test-results/*/**",
379
- },
380
- },
381
- Object {
382
- "if": "matrix.os == 'ubuntu-latest' && matrix.node == 20",
383
- "uses": "codecov/codecov-action@v3",
384
- "with": Object {
385
- "token": "\${{ secrets.CODECOV_TOKEN }}",
386
- },
387
- },
388
- ],
389
- "strategy": Object {
390
- "matrix": Object {
391
- "include": Array [
392
- Object {
393
- "node": 18,
394
- "os": "ubuntu-latest",
395
- },
396
- Object {
397
- "node": 20,
398
- "os": "ubuntu-latest",
399
- },
400
- Object {
401
- "node": 20,
402
- "os": "macos-latest",
403
- },
404
- ],
405
- },
406
- },
407
- },
408
- },
409
- "name": "build",
410
- "on": Object {
411
- "pull_request": Object {},
412
- "push": Object {
413
- "branches": Array [
414
- "master",
415
- ],
416
- },
417
- },
418
- }
419
- `;
420
-
421
- exports[`index no job matrix 1`] = `
422
- Object {
423
- "concurrency": Object {
424
- "cancel-in-progress": true,
425
- "group": "\${{ github.workflow }}-\${{ github.ref }}",
426
- },
427
- "jobs": Object {
428
- "build": Object {
429
- "if": "!contains(github.event.head_commit.message, '[skip ci]')",
430
- "runs-on": "ubuntu-latest",
431
- "steps": Array [
432
- Object {
433
- "uses": "actions/checkout@v4",
434
- "with": Object {
435
- "lfs": true,
436
- "ref": "\${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || '' }}",
437
- },
438
- },
439
- Object {
440
- "uses": "actions/setup-node@v4",
441
- "with": Object {
442
- "check-latest": true,
443
- "node-version": 20,
444
- },
445
- },
446
- Object {
447
- "run": "corepack enable",
448
- },
449
- Object {
450
- "run": "git config --global user.email \\"actions@github.com\\"",
451
- },
452
- Object {
453
- "run": "git config --global user.name \\"GitHub Actions\\"",
454
- },
455
- Object {
456
- "run": "pnpm install --frozen-lockfile",
457
- },
458
- Object {
459
- "env": Object {
460
- "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
461
- },
462
- "run": "pnpm test",
463
- },
464
- Object {
465
- "if": "always()",
466
- "uses": "actions/upload-artifact@v4",
467
- "with": Object {
468
- "if-no-files-found": "ignore",
469
- "name": "Images from tests",
470
- "path": "**/__image_snapshots__/__diff_output__
471
- test-results/*/**",
472
- },
473
- },
474
- Object {
475
- "uses": "codecov/codecov-action@v3",
476
- "with": Object {
477
- "token": "\${{ secrets.CODECOV_TOKEN }}",
478
- },
479
- },
480
- Object {
481
- "run": "pnpm checkUnknownFiles",
482
- },
483
- Object {
484
- "env": Object {
485
- "GITHUB_REPOSITORY": "\${{ secrets.GITHUB_REPOSITORY }}",
486
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
487
- },
488
- "name": "Push changed files",
489
- "run": "pnpm dw-ci push-changed-files",
490
- },
491
- Object {
492
- "env": Object {
493
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
494
- },
495
- "if": "github.ref == 'refs/heads/master'",
496
- "name": "Release",
497
- "run": "pnpm semantic-release",
498
- },
499
- ],
500
- },
501
- },
502
- "name": "build",
503
- "on": Object {
504
- "pull_request": Object {},
505
- "push": Object {
506
- "branches": Array [
507
- "master",
508
- ],
509
- },
510
- },
511
- }
512
- `;
513
-
514
- exports[`index package.json 1`] = `
515
- Object {
516
- "concurrency": Object {
517
- "cancel-in-progress": true,
518
- "group": "\${{ github.workflow }}-\${{ github.ref }}",
519
- },
520
- "jobs": Object {
521
- "release": Object {
522
- "needs": "test",
523
- "runs-on": "ubuntu-latest",
524
- "steps": Array [
525
- Object {
526
- "uses": "actions/checkout@v4",
527
- "with": Object {
528
- "lfs": true,
529
- "ref": "\${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || '' }}",
530
- },
531
- },
532
- Object {
533
- "uses": "actions/setup-node@v4",
534
- "with": Object {
535
- "node-version": 20,
536
- },
537
- },
538
- Object {
539
- "run": "corepack enable",
540
- },
541
- Object {
542
- "run": "git config --global user.email \\"actions@github.com\\"",
543
- },
544
- Object {
545
- "run": "git config --global user.name \\"GitHub Actions\\"",
546
- },
547
- Object {
548
- "run": "pnpm install --frozen-lockfile",
549
- },
550
- Object {
551
- "run": "pnpm checkUnknownFiles",
552
- },
553
- Object {
554
- "run": "pnpm lint",
555
- },
556
- Object {
557
- "env": Object {
558
- "GITHUB_REPOSITORY": "\${{ secrets.GITHUB_REPOSITORY }}",
559
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
560
- },
561
- "name": "Push changed files",
562
- "run": "pnpm dw-ci push-changed-files",
563
- },
564
- Object {
565
- "env": Object {
566
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
567
- "NPM_TOKEN": "\${{ secrets.NPM_TOKEN }}",
568
- },
569
- "if": "github.ref == 'refs/heads/master'",
570
- "name": "Release",
571
- "run": "pnpm semantic-release",
572
- },
573
- ],
574
- },
575
- "test": Object {
576
- "runs-on": "\${{ matrix.os }}",
577
- "steps": Array [
578
- Object {
579
- "uses": "actions/checkout@v4",
580
- "with": Object {
581
- "lfs": true,
582
- },
583
- },
584
- Object {
585
- "uses": "actions/setup-node@v4",
586
- "with": Object {
587
- "check-latest": true,
588
- "node-version": "\${{ matrix.node }}",
589
- },
590
- },
591
- Object {
592
- "run": "corepack enable",
593
- },
594
- Object {
595
- "run": "pnpm install --frozen-lockfile",
596
- },
597
- Object {
598
- "env": Object {
599
- "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
600
- },
601
- "run": "pnpm test",
602
- },
603
- Object {
604
- "if": "always()",
605
- "uses": "actions/upload-artifact@v4",
606
- "with": Object {
607
- "if-no-files-found": "ignore",
608
- "name": "Images from tests",
609
- "path": "**/__image_snapshots__/__diff_output__
610
- test-results/*/**",
611
- },
612
- },
613
- Object {
614
- "if": "matrix.os == 'ubuntu-latest' && matrix.node == 20",
615
- "uses": "codecov/codecov-action@v3",
616
- "with": Object {
617
- "token": "\${{ secrets.CODECOV_TOKEN }}",
618
- },
619
- },
620
- ],
621
- "strategy": Object {
622
- "matrix": Object {
623
- "include": Array [
624
- Object {
625
- "node": 18,
626
- "os": "ubuntu-latest",
627
- },
628
- Object {
629
- "node": 20,
630
- "os": "ubuntu-latest",
631
- },
632
- Object {
633
- "node": 20,
634
- "os": "macos-latest",
635
- },
636
- Object {
637
- "node": 20,
638
- "os": "windows-latest",
639
- },
640
- ],
641
- },
642
- },
643
- },
644
- },
645
- "name": "build",
646
- "on": Object {
647
- "pull_request": Object {},
648
- "push": Object {
649
- "branches": Array [
650
- "master",
651
- ],
652
- },
653
- },
654
- }
655
- `;
656
-
657
- exports[`index package.json same path as .env.schema.json 1`] = `
658
- Object {
659
- "concurrency": Object {
660
- "cancel-in-progress": true,
661
- "group": "\${{ github.workflow }}-\${{ github.ref }}",
662
- },
663
- "jobs": Object {
664
- "release": Object {
665
- "needs": "test",
666
- "runs-on": "ubuntu-latest",
667
- "steps": Array [
668
- Object {
669
- "uses": "actions/checkout@v4",
670
- "with": Object {
671
- "lfs": true,
672
- "ref": "\${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || '' }}",
673
- },
674
- },
675
- Object {
676
- "uses": "actions/setup-node@v4",
677
- "with": Object {
678
- "node-version": 20,
679
- },
680
- },
681
- Object {
682
- "run": "corepack enable",
683
- },
684
- Object {
685
- "run": "git config --global user.email \\"actions@github.com\\"",
686
- },
687
- Object {
688
- "run": "git config --global user.name \\"GitHub Actions\\"",
689
- },
690
- Object {
691
- "run": "pnpm install --frozen-lockfile",
692
- },
693
- Object {
694
- "run": "pnpm checkUnknownFiles",
695
- },
696
- Object {
697
- "run": "pnpm lint",
698
- },
699
- Object {
700
- "env": Object {
701
- "GITHUB_REPOSITORY": "\${{ secrets.GITHUB_REPOSITORY }}",
702
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
703
- },
704
- "name": "Push changed files",
705
- "run": "pnpm dw-ci push-changed-files",
706
- },
707
- Object {
708
- "env": Object {
709
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
710
- "NPM_TOKEN": "\${{ secrets.NPM_TOKEN }}",
711
- },
712
- "if": "github.ref == 'refs/heads/master'",
713
- "name": "Release",
714
- "run": "pnpm semantic-release",
715
- },
716
- ],
717
- },
718
- "test": Object {
719
- "runs-on": "\${{ matrix.os }}",
720
- "steps": Array [
721
- Object {
722
- "uses": "actions/checkout@v4",
723
- "with": Object {
724
- "lfs": true,
725
- },
726
- },
727
- Object {
728
- "uses": "actions/setup-node@v4",
729
- "with": Object {
730
- "check-latest": true,
731
- "node-version": "\${{ matrix.node }}",
732
- },
733
- },
734
- Object {
735
- "run": "corepack enable",
736
- },
737
- Object {
738
- "run": "pnpm install --frozen-lockfile",
739
- },
740
- Object {
741
- "env": Object {
742
- "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
743
- "TEST_FOO": "\${{ secrets.TEST_FOO }}",
744
- },
745
- "run": "pnpm test",
746
- },
747
- Object {
748
- "if": "always()",
749
- "uses": "actions/upload-artifact@v4",
750
- "with": Object {
751
- "if-no-files-found": "ignore",
752
- "name": "Images from tests",
753
- "path": "**/__image_snapshots__/__diff_output__
754
- test-results/*/**",
755
- },
756
- },
757
- Object {
758
- "if": "matrix.os == 'ubuntu-latest' && matrix.node == 20",
759
- "uses": "codecov/codecov-action@v3",
760
- "with": Object {
761
- "token": "\${{ secrets.CODECOV_TOKEN }}",
762
- },
763
- },
764
- ],
765
- "strategy": Object {
766
- "matrix": Object {
767
- "include": Array [
768
- Object {
769
- "node": 18,
770
- "os": "ubuntu-latest",
771
- },
772
- Object {
773
- "node": 20,
774
- "os": "ubuntu-latest",
775
- },
776
- Object {
777
- "node": 20,
778
- "os": "macos-latest",
779
- },
780
- Object {
781
- "node": 20,
782
- "os": "windows-latest",
783
- },
784
- ],
785
- },
786
- },
787
- },
788
- },
789
- "name": "build",
790
- "on": Object {
791
- "pull_request": Object {},
792
- "push": Object {
793
- "branches": Array [
794
- "master",
795
- ],
796
- },
797
- },
798
- }
799
- `;
800
-
801
- exports[`index subdir 1`] = `
802
- Object {
803
- "jobs": Object {
804
- "cancel-existing": Object {
805
- "if": "!contains(github.event.head_commit.message, '[skip ci]')",
806
- "runs-on": "ubuntu-latest",
807
- "steps": Array [
808
- Object {
809
- "env": Object {
810
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
811
- },
812
- "uses": "rokroskar/workflow-run-cleanup-action@v0.3.3",
813
- },
814
- ],
815
- },
816
- "release": Object {
817
- "needs": "test",
818
- "runs-on": "ubuntu-latest",
819
- "steps": Array [
820
- Object {
821
- "uses": "actions/checkout@v4",
822
- "with": Object {
823
- "lfs": true,
824
- "ref": "\${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || '' }}",
825
- },
826
- },
827
- Object {
828
- "run": "corepack enable",
829
- },
830
- Object {
831
- "uses": "actions/setup-node@v4",
832
- "with": Object {
833
- "node-version": 14,
834
- },
835
- },
836
- Object {
837
- "run": "git config --global user.email \\"actions@github.com\\"",
838
- },
839
- Object {
840
- "run": "git config --global user.name \\"GitHub Actions\\"",
841
- },
842
- Object {
843
- "run": "yarn --frozen-lockfile",
844
- },
845
- Object {
846
- "run": "yarn checkUnknownFiles",
847
- },
848
- Object {
849
- "run": "yarn lint",
850
- },
851
- Object {
852
- "env": Object {
853
- "GITHUB_REPOSITORY": "\${{ secrets.GITHUB_REPOSITORY }}",
854
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
855
- },
856
- "name": "Push changed files",
857
- "run": "yarn dw-ci push-changed-files",
858
- },
859
- Object {
860
- "env": Object {
861
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
862
- "NPM_TOKEN": "\${{ secrets.NPM_TOKEN }}",
863
- },
864
- "if": "github.ref == 'refs/heads/master'",
865
- "name": "Release",
866
- "run": "yarn semantic-release",
867
- },
868
- ],
869
- },
870
- "test": Object {
871
- "needs": "cancel-existing",
872
- "runs-on": "\${{ matrix.os }}",
873
- "steps": Array [
874
- Object {
875
- "uses": "actions/checkout@v4",
876
- "with": Object {
877
- "fetch-depth": 0,
878
- "lfs": true,
879
- },
880
- },
881
- Object {
882
- "run": "corepack enable",
883
- },
884
- Object {
885
- "uses": "actions/setup-node@v4",
886
- "with": Object {
887
- "node-version": "\${{ matrix.node }}",
888
- },
889
- },
890
- Object {
891
- "run": "yarn --frozen-lockfile",
892
- },
893
- Object {
894
- "run": "yarn test",
895
- },
896
- Object {
897
- "uses": "actions/upload-artifact@v3",
898
- "with": Object {
899
- "name": "Images from tests",
900
- "path": "**/__image_snapshots__/__diff_output__",
901
- },
902
- },
903
- Object {
904
- "if": "matrix.os == 'ubuntu-latest' && matrix.node == 14",
905
- "uses": "codecov/codecov-action@v3",
906
- "with": Object {
907
- "token": "\${{ secrets.CODECOV_TOKEN }}",
908
- },
909
- },
910
- ],
911
- "strategy": Object {
912
- "matrix": Object {
913
- "include": Array [
914
- Object {
915
- "node": 14,
916
- "os": "ubuntu-latest",
917
- },
918
- Object {
919
- "node": 16,
920
- "os": "ubuntu-latest",
921
- },
922
- Object {
923
- "os": "macos-latest",
924
- "version": 16,
925
- },
926
- Object {
927
- "os": "windows-latest",
928
- "version": 16,
929
- },
930
- ],
931
- },
932
- },
933
- },
934
- },
935
- "name": "build",
936
- "on": Object {
937
- "pull_request": Object {},
938
- "push": Object {
939
- "branches": Array [
940
- "master",
941
- ],
942
- },
943
- },
944
- }
945
- `;
946
-
947
- exports[`index test environment variables 1`] = `
948
- Object {
949
- "concurrency": Object {
950
- "cancel-in-progress": true,
951
- "group": "\${{ github.workflow }}-\${{ github.ref }}",
952
- },
953
- "jobs": Object {
954
- "build": Object {
955
- "if": "!contains(github.event.head_commit.message, '[skip ci]')",
956
- "runs-on": "ubuntu-latest",
957
- "steps": Array [
958
- Object {
959
- "uses": "actions/checkout@v4",
960
- "with": Object {
961
- "lfs": true,
962
- "ref": "\${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || '' }}",
963
- },
964
- },
965
- Object {
966
- "uses": "actions/setup-node@v4",
967
- "with": Object {
968
- "check-latest": true,
969
- "node-version": 14,
970
- },
971
- },
972
- Object {
973
- "run": "corepack enable",
974
- },
975
- Object {
976
- "run": "git config --global user.email \\"actions@github.com\\"",
977
- },
978
- Object {
979
- "run": "git config --global user.name \\"GitHub Actions\\"",
980
- },
981
- Object {
982
- "run": "pnpm install --frozen-lockfile",
983
- },
984
- Object {
985
- "env": Object {
986
- "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
987
- "TEST_BAR": "\${{ secrets.TEST_BAR }}",
988
- "TEST_FOO": "\${{ secrets.TEST_FOO }}",
989
- },
990
- "run": "pnpm test",
991
- },
992
- Object {
993
- "if": "always()",
994
- "uses": "actions/upload-artifact@v4",
995
- "with": Object {
996
- "if-no-files-found": "ignore",
997
- "name": "Images from tests",
998
- "path": "**/__image_snapshots__/__diff_output__
999
- test-results/*/**",
1000
- },
1001
- },
1002
- Object {
1003
- "uses": "codecov/codecov-action@v3",
1004
- "with": Object {
1005
- "token": "\${{ secrets.CODECOV_TOKEN }}",
1006
- },
1007
- },
1008
- Object {
1009
- "run": "pnpm checkUnknownFiles",
1010
- },
1011
- Object {
1012
- "env": Object {
1013
- "GITHUB_REPOSITORY": "\${{ secrets.GITHUB_REPOSITORY }}",
1014
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
1015
- },
1016
- "name": "Push changed files",
1017
- "run": "pnpm dw-ci push-changed-files",
1018
- },
1019
- Object {
1020
- "env": Object {
1021
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
1022
- },
1023
- "if": "github.ref == 'refs/heads/master'",
1024
- "name": "Release",
1025
- "run": "pnpm semantic-release",
1026
- },
1027
- ],
1028
- },
1029
- },
1030
- "name": "build",
1031
- "on": Object {
1032
- "pull_request": Object {},
1033
- "push": Object {
1034
- "branches": Array [
1035
- "master",
1036
- ],
1037
- },
1038
- },
1039
- }
1040
- `;
1041
-
1042
- exports[`index testInContainer 1`] = `
1043
- Object {
1044
- "concurrency": Object {
1045
- "cancel-in-progress": true,
1046
- "group": "\${{ github.workflow }}-\${{ github.ref }}",
1047
- },
1048
- "jobs": Object {
1049
- "build": Object {
1050
- "if": "!contains(github.event.head_commit.message, '[skip ci]')",
1051
- "runs-on": "ubuntu-latest",
1052
- "steps": Array [
1053
- Object {
1054
- "uses": "actions/checkout@v4",
1055
- "with": Object {
1056
- "lfs": true,
1057
- "ref": "\${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref || '' }}",
1058
- },
1059
- },
1060
- Object {
1061
- "uses": "actions/setup-node@v4",
1062
- "with": Object {
1063
- "check-latest": true,
1064
- "node-version": 14,
1065
- },
1066
- },
1067
- Object {
1068
- "run": "corepack enable",
1069
- },
1070
- Object {
1071
- "run": "git config --global user.email \\"actions@github.com\\"",
1072
- },
1073
- Object {
1074
- "run": "git config --global user.name \\"GitHub Actions\\"",
1075
- },
1076
- Object {
1077
- "run": "pnpm install --frozen-lockfile",
1078
- },
1079
- Object {
1080
- "env": Object {
1081
- "GH_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
1082
- },
1083
- "run": "pnpm test",
1084
- },
1085
- Object {
1086
- "if": "always()",
1087
- "uses": "actions/upload-artifact@v4",
1088
- "with": Object {
1089
- "if-no-files-found": "ignore",
1090
- "name": "Images from tests",
1091
- "path": "**/__image_snapshots__/__diff_output__
1092
- test-results/*/**",
1093
- },
1094
- },
1095
- Object {
1096
- "uses": "codecov/codecov-action@v3",
1097
- "with": Object {
1098
- "token": "\${{ secrets.CODECOV_TOKEN }}",
1099
- },
1100
- },
1101
- Object {
1102
- "run": "pnpm checkUnknownFiles",
1103
- },
1104
- Object {
1105
- "env": Object {
1106
- "GITHUB_REPOSITORY": "\${{ secrets.GITHUB_REPOSITORY }}",
1107
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
1108
- },
1109
- "name": "Push changed files",
1110
- "run": "pnpm dw-ci push-changed-files",
1111
- },
1112
- Object {
1113
- "env": Object {
1114
- "GITHUB_TOKEN": "\${{ secrets.GITHUB_TOKEN }}",
1115
- },
1116
- "if": "github.ref == 'refs/heads/master'",
1117
- "name": "Release",
1118
- "run": "pnpm semantic-release",
1119
- },
1120
- ],
1121
- },
1122
- },
1123
- "name": "build",
1124
- "on": Object {
1125
- "pull_request": Object {},
1126
- "push": Object {
1127
- "branches": Array [
1128
- "master",
1129
- ],
1130
- },
1131
- },
1132
- }
1133
- `;