declapract-typescript-ehmpathy 0.49.8 → 0.49.10

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 (38) hide show
  1. package/dist/__snapshots__/actionPins.declapract.integration.test.ts.snap +70 -0
  2. package/dist/actionPins.declapract.integration.test.ts +785 -0
  3. package/dist/practices/cicd-app-react-native-expo/best-practice/.declapract.readme.md +27 -0
  4. package/dist/practices/cicd-app-react-native-expo/best-practice/.github/workflows/.deploy-expo.yml +10 -10
  5. package/dist/practices/cicd-app-react-native-expo/best-practice/.github/workflows/deploy.yml +4 -0
  6. package/dist/practices/cicd-app-react-native-expo/best-practice/.github/workflows/test.yml +4 -0
  7. package/dist/practices/cicd-app-react-native-expo/best-practice/.gitignore.declapract.ts +18 -11
  8. package/dist/practices/cicd-common/.declapract.integration.test.ts +572 -0
  9. package/dist/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/.test.yml +19 -0
  10. package/dist/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/consumer-owned.yml +21 -0
  11. package/dist/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/review.yml +26 -0
  12. package/dist/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/declapract.use.yml +6 -0
  13. package/dist/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/package.json +4 -0
  14. package/dist/practices/cicd-common/__snapshots__/.declapract.integration.test.ts.snap +550 -0
  15. package/dist/practices/cicd-common/best-practice/.declapract.readme.md +5 -0
  16. package/dist/practices/cicd-common/best-practice/.github/workflows/.declastruct.yml +12 -12
  17. package/dist/practices/cicd-common/best-practice/.github/workflows/.install.yml +5 -5
  18. package/dist/practices/cicd-common/best-practice/.github/workflows/.test.yml +25 -25
  19. package/dist/practices/cicd-common/best-practice/.github/workflows/release.yml +2 -2
  20. package/dist/practices/cicd-common/best-practice/.github/workflows/review.yml +1 -1
  21. package/dist/practices/cicd-package/best-practice/.github/workflows/.publish-npm.yml +3 -3
  22. package/dist/practices/cicd-package/best-practice/.github/workflows/provision.yml +4 -0
  23. package/dist/practices/cicd-service/best-practice/.github/workflows/.deploy-sls.yml +13 -13
  24. package/dist/practices/cicd-service/best-practice/.github/workflows/.sql-schema-control.yml +8 -8
  25. package/dist/practices/cicd-service/best-practice/.github/workflows/.terraform.yml +6 -6
  26. package/dist/practices/cicd-service/best-practice/.github/workflows/provision.yml +4 -0
  27. package/dist/practices/git/.declapract.integration.test.ts +950 -0
  28. package/dist/practices/git/.test/assets/repo-with-rhachet-only/declapract.use.yml +6 -0
  29. package/dist/practices/git/.test/assets/repo-with-rhachet-only/package.json +4 -0
  30. package/dist/practices/git/.test/assets/repo-without-cache-ignores/declapract.use.yml +9 -0
  31. package/dist/practices/git/.test/assets/repo-without-cache-ignores/package.json +4 -0
  32. package/dist/practices/git/__snapshots__/.declapract.integration.test.ts.snap +51 -0
  33. package/dist/practices/git/best-practice/.declapract.readme.md +23 -0
  34. package/dist/practices/git/best-practice/.gitignore.declapract.ts +59 -33
  35. package/dist/practices/rhachet/best-practice/.declapract.readme.md +32 -0
  36. package/dist/practices/rhachet/best-practice/.gitignore.declapract.ts +64 -0
  37. package/dist/utils/defineExpectedGitignoreContents.ts +84 -0
  38. package/package.json +7 -7
@@ -0,0 +1,70 @@
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
+
3
+ exports[`action pins given: [case1] every yaml template declared under a practice .github tree when: [t2] the refs are read together then: the pin table reads as declared -- if the diff surprises you, a bump reached more or fewer sites than intended 1`] = `
4
+ [
5
+ "Entle/action-pagerduty-alert@e6ca54cd88948b8a50f5bb1071dfa5bdb149ce7e — 1 site",
6
+ "actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 — 19 sites",
7
+ "actions/checkout@11d5960a326750d5838078e36cf38b85af677262 — 22 sites",
8
+ "actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 — 3 sites",
9
+ "actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 — 1 site",
10
+ "actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 — 18 sites",
11
+ "actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 — 1 site",
12
+ "amannn/action-semantic-pull-request@e32d7e603df1aa1ba07e981f2a23455dee596825 — 1 site",
13
+ "aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a — 13 sites",
14
+ "expo/expo-github-action@c7b66a9c327a43a8fa7c0158e7f30d6040d2481e — 2 sites",
15
+ "hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd — 3 sites",
16
+ "pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 — 1 site",
17
+ ]
18
+ `;
19
+
20
+ exports[`action pins given: [case2] every yaml under this repo's own .github tree when: [t2] the refs are read together then: the pin table reads as declared -- if the diff surprises you, a bump reached more or fewer sites than intended 1`] = `
21
+ [
22
+ "actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 — 12 sites",
23
+ "actions/checkout@11d5960a326750d5838078e36cf38b85af677262 — 12 sites",
24
+ "actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 — 3 sites",
25
+ "actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 — 1 site",
26
+ "actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 — 11 sites",
27
+ "actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 — 1 site",
28
+ "amannn/action-semantic-pull-request@e32d7e603df1aa1ba07e981f2a23455dee596825 — 1 site",
29
+ "aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a — 4 sites",
30
+ "hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd — 1 site",
31
+ "pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 — 1 site",
32
+ ]
33
+ `;
34
+
35
+ exports[`action pins given: [case6] a corpus that is defective on purpose, one line per defect when: [t0] the defective corpus is read the way the walk reads a real one then: and the pin table still reads, defects and all: the pin table over a defective corpus 1`] = `
36
+ [
37
+ "actions/checkout@11d5960a326750d5838078e36cf38b85af677262 + deadbeefdeadbeefdeadbeefdeadbeefdeadbeef + v4 — 3 sites",
38
+ "actions/setup-node@cafebabecafebabecafebabecafebabecafebabe — 1 site",
39
+ "pnpm/action-setup@b906aff — 1 site",
40
+ ]
41
+ `;
42
+
43
+ exports[`action pins given: [case6] a corpus that is defective on purpose, one line per defect when: [t0] the defective corpus is read the way the walk reads a real one then: the drift report names the repo and both shas -- which is what tells a maintainer the bump reached some sites and missed others: drifted -- the report a half-applied bump produces 1`] = `
44
+ [
45
+ "actions/checkout — 11d5960a326750d5838078e36cf38b85af677262 vs deadbeefdeadbeefdeadbeefdeadbeefdeadbeef",
46
+ ]
47
+ `;
48
+
49
+ exports[`action pins given: [case6] a corpus that is defective on purpose, one line per defect when: [t0] the defective corpus is read the way the walk reads a real one then: the unpinned report names each offender with a path an editor accepts -- if this snapshot ever carries an absolute path, the label named the machine that ran the suite: unpinned -- the report a tag ref and a short sha produce 1`] = `
50
+ [
51
+ "src/practices/cicd-demo/best-practice/.github/workflows/deploy.yml:1 — actions/checkout@v4",
52
+ "src/practices/cicd-demo/best-practice/.github/workflows/deploy.yml:5 — pnpm/action-setup@b906aff",
53
+ ]
54
+ `;
55
+
56
+ exports[`action pins given: [case6] a corpus that is defective on purpose, one line per defect when: [t0] the defective corpus is read the way the walk reads a real one then: the untailed report names each ref whose sha records no provenance: untailed -- the report a bare sha produces 1`] = `
57
+ [
58
+ "src/practices/cicd-demo/best-practice/.github/workflows/deploy.yml:1 — actions/checkout@v4",
59
+ "src/practices/cicd-demo/best-practice/.github/workflows/deploy.yml:2 — actions/setup-node@cafebabecafebabecafebabecafebabecafebabe",
60
+ ]
61
+ `;
62
+
63
+ exports[`action pins given: [case6] a corpus that is defective on purpose, one line per defect when: [t1] the corpus is empty then: every report reads as empty rather than absent: the reports over a corpus of zero refs 1`] = `
64
+ {
65
+ "drifted": [],
66
+ "table": [],
67
+ "unpinned": [],
68
+ "untailed": [],
69
+ }
70
+ `;