Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: adopted-ember-addons/ember-data-factory-guy
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.7.0-beta.7
Choose a base ref
...
head repository: adopted-ember-addons/ember-data-factory-guy
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Feb 24, 2015

  1. Build

    = committed Feb 24, 2015
    Copy the full SHA
    e509978 View commit details

Commits on Jun 29, 2016

  1. Sync to origin

    cristinawithout committed Jun 29, 2016
    Copy the full SHA
    b2a58cd View commit details
  2. Copy the full SHA
    09f2f20 View commit details
  3. Merge pull request #214 from cristinawithout/issue-213-jsonapi-payloa…

    …dkey
    
    Issue 213 jsonapi payloadkey
    danielspaniel authored Jun 29, 2016
    Copy the full SHA
    b99ff8d View commit details
  4. Copy the full SHA
    5bd4966 View commit details

Commits on Jun 30, 2016

  1. streamlining mockCreate custom tests

    removing commented out tests 
    removing old attribute transfomer
    danielspaniel committed Jun 30, 2016
    Copy the full SHA
    a7fea90 View commit details
  2. cleanup

    danielspaniel committed Jun 30, 2016
    Copy the full SHA
    a2a7f11 View commit details
  3. 2.7.0-beta.8

    danielspaniel committed Jun 30, 2016
    Copy the full SHA
    ffbb1a1 View commit details
  4. jshint fix

    danielspaniel committed Jun 30, 2016
    Copy the full SHA
    3a8893f View commit details

Commits on Jul 3, 2016

  1. adding option to mockRequest#fails ( convertErrors = false ) to set y…

    …our errors with no conversion by factory guy
    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    014d9f4 View commit details
  2. streamlined setting custom serializer options on models tested with v…

    …arious serializers
    
    removed dog model and test for using custom primaryKey since cat tests do the same thing
    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    ad260db View commit details
  3. doc updates

    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    3a252a3 View commit details
  4. doc updates

    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    c500284 View commit details
  5. doc updates

    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    358c4d0 View commit details
  6. doc updates

    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    58b6f2b View commit details
  7. doc updates

    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    7d975e9 View commit details
  8. doc updates

    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    d0259d1 View commit details
  9. doc updates

    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    9e21048 View commit details
  10. doc updates

    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    2c12f1f View commit details
  11. doc updates

    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    fc5fcdd View commit details
  12. doc updates

    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    1ab1085 View commit details
  13. doc updates

    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    b3b96b1 View commit details
  14. doc updates

    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    268dad1 View commit details
  15. doc updates

    danielspaniel committed Jul 3, 2016
    Copy the full SHA
    3dd05d5 View commit details

Commits on Jul 4, 2016

  1. remove unused code

    danielspaniel committed Jul 4, 2016
    Copy the full SHA
    46567b0 View commit details
  2. Copy the full SHA
    37e83cc View commit details
  3. Copy the full SHA
    d60f069 View commit details
  4. 2.7.0-beta.9

    danielspaniel committed Jul 4, 2016
    Copy the full SHA
    bb923cf View commit details
  5. Copy the full SHA
    1bfa18b View commit details
  6. doc updates

    danielspaniel committed Jul 4, 2016
    Copy the full SHA
    2cebc9e View commit details

Commits on Jul 6, 2016

  1. Copy the full SHA
    0398037 View commit details

Commits on Jul 7, 2016

  1. Copy the full SHA
    3b33c7a View commit details
  2. doc update

    danielspaniel committed Jul 7, 2016
    Copy the full SHA
    15c2871 View commit details
  3. Copy the full SHA
    bc88ba5 View commit details
  4. Copy the full SHA
    2f883df View commit details
  5. code style fix

    danielspaniel committed Jul 7, 2016
    Copy the full SHA
    2e00270 View commit details
  6. Copy the full SHA
    22e10e0 View commit details
  7. 2.7.0-beta.10

    danielspaniel committed Jul 7, 2016
    Copy the full SHA
    e23798d View commit details
  8. doc update

    danielspaniel committed Jul 7, 2016
    Copy the full SHA
    0b79715 View commit details
  9. doc update

    danielspaniel committed Jul 7, 2016
    Copy the full SHA
    ab91b16 View commit details
  10. doc update

    danielspaniel committed Jul 7, 2016
    Copy the full SHA
    20e46ce View commit details
  11. Copy the full SHA
    7af37b4 View commit details
  12. doc update

    danielspaniel committed Jul 7, 2016
    Copy the full SHA
    64d2b38 View commit details

Commits on Jul 8, 2016

  1. Copy the full SHA
    8e2dca2 View commit details
  2. doc update

    danielspaniel committed Jul 8, 2016
    Copy the full SHA
    89b41ba View commit details
  3. doc update

    danielspaniel committed Jul 8, 2016
    Copy the full SHA
    4709b31 View commit details
  4. doc update

    danielspaniel committed Jul 8, 2016
    Copy the full SHA
    c0c80f2 View commit details
  5. doc update

    danielspaniel committed Jul 8, 2016
    Copy the full SHA
    02ce1a1 View commit details
  6. 2.7.0-beta.11

    danielspaniel committed Jul 8, 2016
    Copy the full SHA
    6115c7f View commit details
  7. doc update

    danielspaniel committed Jul 8, 2016
    Copy the full SHA
    9ec5180 View commit details
Showing with 28,923 additions and 9,912 deletions.
  1. +3 −0 .babelrc
  2. +0 −4 .bowerrc
  3. +19 −0 .editorconfig
  4. +9 −0 .ember-cli
  5. +22 −0 .eslintignore
  6. +58 −0 .eslintrc.js
  7. +120 −0 .github/workflows/ci.yml
  8. +90 −0 .github/workflows/plan-release.yml
  9. +58 −0 .github/workflows/publish.yml
  10. +7 −0 .gitignore
  11. +0 −32 .jshintrc
  12. +28 −19 .npmignore
  13. +21 −0 .prettierignore
  14. +5 −0 .prettierrc.js
  15. +25 −0 .release-plan.json
  16. +10 −0 .template-lintrc.js
  17. +0 −34 .travis.yml
  18. +3 −0 .watchmanconfig
  19. +966 −381 CHANGELOG.md
  20. +25 −0 CONTRIBUTING.md
  21. +1,265 −788 README.md
  22. +27 −0 RELEASE.md
  23. +1 −3 addon/builder/active-model-fixture-builder.js
  24. +1 −3 addon/builder/drf-fixture-builder.js
  25. +47 −20 addon/builder/fixture-builder-factory.js
  26. +34 −18 addon/builder/fixture-builder.js
  27. +2 −2 addon/builder/json-fixture-builder.js
  28. +2 −3 addon/builder/jsonapi-fixture-builder.js
  29. +2 −3 addon/builder/rest-fixture-builder.js
  30. +6 −3 addon/converter/active-model-fixture-converter.js
  31. +7 −3 addon/converter/drf-fixture-converter.js
  32. +239 −82 addon/converter/fixture-converter.js
  33. +45 −23 addon/converter/json-fixture-converter.js
  34. +73 −27 addon/converter/jsonapi-fixture-converter.js
  35. +18 −18 addon/converter/rest-fixture-converter.js
  36. +0 −437 addon/factory-guy-test-helper.js
  37. +394 −253 addon/factory-guy.js
  38. +46 −10 addon/index.js
  39. +0 −124 addon/jsonapi-attribute-transformer.js
  40. +1 −1 addon/missing-sequence-error.js
  41. +110 −0 addon/mocks/attribute-matcher.js
  42. +406 −0 addon/mocks/exposed-request-functions.js
  43. +34 −0 addon/mocks/maybe-id-url-match.js
  44. +60 −0 addon/mocks/mock-any-request.js
  45. +31 −83 addon/mocks/mock-create-request.js
  46. +10 −28 addon/mocks/mock-delete-request.js
  47. +5 −9 addon/mocks/mock-find-all-request.js
  48. +32 −0 addon/mocks/mock-find-record-request.js
  49. +0 −14 addon/mocks/mock-find-request.js
  50. +87 −74 addon/mocks/mock-get-request.js
  51. +163 −0 addon/mocks/mock-links-request.js
  52. +7 −10 addon/mocks/mock-query-record-request.js
  53. +8 −7 addon/mocks/mock-query-request.js
  54. +4 −5 addon/mocks/mock-reload-request.js
  55. +163 −54 addon/mocks/mock-request.js
  56. +57 −0 addon/mocks/mock-store-request.js
  57. +43 −48 addon/mocks/mock-update-request.js
  58. +131 −0 addon/mocks/request-manager.js
  59. +105 −0 addon/mocks/request-wrapper.js
  60. +113 −46 addon/model-definition.js
  61. +23 −26 addon/payload/base-payload.js
  62. +3 −5 addon/payload/drf-payload.js
  63. +15 −10 addon/payload/json-api-payload.js
  64. +4 −6 addon/payload/json-payload.js
  65. +10 −8 addon/payload/rest-payload.js
  66. +21 −12 addon/scenario.js
  67. +178 −15 addon/utils/helper-functions.js
  68. +2 −2 addon/utils/load-factories.js
  69. +19 −17 addon/utils/load-scenarios.js
  70. +8 −8 addon/utils/manual-setup.js
  71. +6 −3 app/initializers/ember-data-factory-guy.js
  72. +2 −6 blueprints/ember-data-factory-guy/index.js
  73. +0 −44 bower.json
  74. +77 −32 config/ember-try.js
  75. +3 −9 config/environment.js
  76. +12 −47 ember-cli-build.js
  77. +109 −29 index.js
  78. +117 −45 package.json
  79. +35 −0 patches/release-plan@0.10.0.patch
  80. +13,636 −0 pnpm-lock.yaml
  81. +23 −0 testem.js
  82. +0 −12 testem.json
  83. +0 −58 tests/.jshintrc
  84. +0 −28 tests/acceptance/dogs-view-test.js
  85. +77 −39 tests/acceptance/employee-view-test.js
  86. +40 −27 tests/acceptance/profiles-view-test.js
  87. +80 −86 tests/acceptance/user-search-test.js
  88. +100 −50 tests/acceptance/user-view-test.js
  89. +37 −43 tests/acceptance/users-delete-test.js
  90. +42 −49 tests/acceptance/users-view-test.js
  91. +0 −21 tests/components/single-user-manual-setup-test.js
  92. +0 −33 tests/components/single-user-test.js
  93. +0 −78 tests/dummy/.jshintrc
  94. +5 −3 tests/dummy/app/adapters/application.js
  95. +7 −13 tests/dummy/app/app.js
  96. +2 −2 tests/dummy/app/{templates → }/components/animal-list.hbs
  97. +6 −0 tests/dummy/app/components/dude-translator.hbs
  98. +0 −13 tests/dummy/app/components/dude-translator.js
  99. +1 −1 tests/dummy/app/{templates → }/components/profile-list.hbs
  100. +0 −2 tests/dummy/app/components/profile-list.js
  101. +36 −0 tests/dummy/app/components/single-employee.hbs
  102. +0 −6 tests/dummy/app/components/single-employee.js
  103. +18 −0 tests/dummy/app/components/single-user.hbs
  104. +0 −14 tests/dummy/app/components/single-user.js
  105. +12 −0 tests/dummy/app/components/user-list.hbs
  106. +0 −10 tests/dummy/app/components/user-list.js
  107. +3 −0 tests/dummy/app/components/user-search.hbs
  108. +0 −13 tests/dummy/app/components/user-search.js
  109. +3 −0 tests/dummy/app/config/scenarios.js
  110. +2 −2 tests/dummy/app/controllers/profiles.js
  111. +11 −0 tests/dummy/app/controllers/search.js
  112. +11 −0 tests/dummy/app/controllers/search/results.js
  113. +12 −0 tests/dummy/app/controllers/user.js
  114. +9 −2 tests/dummy/app/controllers/users.js
  115. +8 −8 tests/dummy/app/index.html
  116. +4 −3 tests/dummy/app/models/big-group.js
  117. +4 −3 tests/dummy/app/models/big-hat.js
  118. +4 −4 tests/dummy/app/models/billing-address.js
  119. +6 −4 tests/dummy/app/models/cat.js
  120. +7 −6 tests/dummy/app/models/comic-book.js
  121. +8 −8 tests/dummy/app/models/company.js
  122. +3 −0 tests/dummy/app/models/cool-stoner.js
  123. +8 −8 tests/dummy/app/models/department-employment.js
  124. +11 −7 tests/dummy/app/models/department.js
  125. +7 −6 tests/dummy/app/models/dog.js
  126. +15 −12 tests/dummy/app/models/employee.js
  127. +6 −0 tests/dummy/app/models/entry-type.js
  128. +6 −0 tests/dummy/app/models/entry.js
  129. +9 −3 tests/dummy/app/models/fluffy-material.js
  130. +18 −8 tests/dummy/app/models/group.js
  131. +10 −10 tests/dummy/app/models/hat.js
  132. +4 −4 tests/dummy/app/models/mailing-address.js
  133. +7 −8 tests/dummy/app/models/manager.js
  134. +4 −4 tests/dummy/app/models/material.js
  135. +6 −6 tests/dummy/app/models/name.js
  136. +8 −8 tests/dummy/app/models/nested-fragment/address.js
  137. +6 −6 tests/dummy/app/models/outfit.js
  138. +9 −9 tests/dummy/app/models/person.js
  139. +1 −1 tests/dummy/app/models/philosopher.js
  140. +17 −12 tests/dummy/app/models/profile.js
  141. +9 −6 tests/dummy/app/models/project.js
  142. +6 −6 tests/dummy/app/models/property.js
  143. +5 −5 tests/dummy/app/models/review.js
  144. +5 −0 tests/dummy/app/models/rod.js
  145. +6 −6 tests/dummy/app/models/salary.js
  146. +6 −5 tests/dummy/app/models/small-company.js
  147. +4 −3 tests/dummy/app/models/small-group.js
  148. +4 −3 tests/dummy/app/models/small-hat.js
  149. +4 −3 tests/dummy/app/models/soft-material.js
  150. +1 −1 tests/dummy/app/models/stoner.js
  151. +1 −1 tests/dummy/app/models/super-hero.js
  152. +18 −14 tests/dummy/app/models/user.js
  153. +1 −1 tests/dummy/app/models/villain.js
  154. +11 −13 tests/dummy/app/router.js
  155. +2 −2 tests/dummy/app/routes/application.js
  156. +4 −4 tests/dummy/app/routes/cats.js
  157. +0 −7 tests/dummy/app/routes/dogs.js
  158. +2 −3 tests/dummy/app/routes/employees.js
  159. +4 −4 tests/dummy/app/routes/profiles.js
  160. +2 −11 tests/dummy/app/routes/search.js
  161. +4 −7 tests/dummy/app/routes/search/results.js
  162. +6 −2 tests/dummy/app/routes/user.js
  163. +4 −4 tests/dummy/app/routes/users.js
  164. +6 −6 tests/dummy/app/scenarios/main.js
  165. +3 −3 tests/dummy/app/scenarios/users.js
  166. +2 −2 tests/dummy/app/scenarios/usersB.js
  167. +2 −2 tests/dummy/app/serializers/application.js
  168. +0 −5 tests/dummy/app/serializers/dog.js
  169. +13 −7 tests/dummy/app/serializers/manager.js
  170. +8 −0 tests/dummy/app/serializers/name.js
  171. +6 −7 tests/dummy/app/serializers/profile.js
  172. +0 −3 tests/dummy/app/templates/application.hbs
  173. +1 −1 tests/dummy/app/templates/cats.hbs
  174. +0 −4 tests/dummy/app/templates/components/dude-translator.hbs
  175. +0 −34 tests/dummy/app/templates/components/single-employee.hbs
  176. +0 −14 tests/dummy/app/templates/components/single-user.hbs
  177. +0 −12 tests/dummy/app/templates/components/user-list.hbs
  178. +0 −3 tests/dummy/app/templates/components/user-search.hbs
  179. +0 −1 tests/dummy/app/templates/dogs.hbs
  180. +1 −1 tests/dummy/app/templates/employee.hbs
  181. +1 −1 tests/dummy/app/templates/profiles.hbs
  182. +2 −2 tests/dummy/app/templates/search.hbs
  183. +10 −4 tests/dummy/app/templates/search/results.hbs
  184. +5 −1 tests/dummy/app/templates/user.hbs
  185. +1 −1 tests/dummy/app/templates/users.hbs
  186. +5 −5 tests/dummy/app/tests/factories/address.js
  187. +6 −4 tests/dummy/app/tests/factories/big-group.js
  188. +3 −3 tests/dummy/app/tests/factories/big-hat.js
  189. +1 −1 tests/dummy/app/tests/factories/billing-address.js
  190. +6 −1 tests/dummy/app/tests/factories/cat.js
  191. +9 −6 tests/dummy/app/tests/factories/comic-book.js
  192. +7 −7 tests/dummy/app/tests/factories/company.js
  193. +2 −2 tests/dummy/app/tests/factories/department-employment.js
  194. +2 −2 tests/dummy/app/tests/factories/department.js
  195. +13 −1 tests/dummy/app/tests/factories/dog.js
  196. +10 −7 tests/dummy/app/tests/factories/employee.js
  197. +7 −0 tests/dummy/app/tests/factories/entry-type.js
  198. +7 −0 tests/dummy/app/tests/factories/entry.js
  199. +6 −6 tests/dummy/app/tests/factories/fluffy-material.js
  200. +14 −8 tests/dummy/app/tests/factories/group.js
  201. +6 −4 tests/dummy/app/tests/factories/hat.js
  202. +1 −1 tests/dummy/app/tests/factories/mailing-address.js
  203. +8 −8 tests/dummy/app/tests/factories/manager.js
  204. +5 −5 tests/dummy/app/tests/factories/name.js
  205. +4 −4 tests/dummy/app/tests/factories/outfit.js
  206. +9 −6 tests/dummy/app/tests/factories/profile.js
  207. +20 −12 tests/dummy/app/tests/factories/project.js
  208. +8 −7 tests/dummy/app/tests/factories/property.js
  209. +3 −3 tests/dummy/app/tests/factories/review.js
  210. +7 −0 tests/dummy/app/tests/factories/rod.js
  211. +2 −2 tests/dummy/app/tests/factories/salary.js
  212. +3 −3 tests/dummy/app/tests/factories/small-company.js
  213. +6 −4 tests/dummy/app/tests/factories/small-group.js
  214. +3 −3 tests/dummy/app/tests/factories/small-hat.js
  215. +4 −4 tests/dummy/app/tests/factories/soft-material.js
  216. +4 −4 tests/dummy/app/tests/factories/super-hero.js
  217. +28 −18 tests/dummy/app/tests/factories/user.js
  218. +4 −4 tests/dummy/app/tests/factories/villain.js
  219. +1 −0 tests/dummy/app/tests/helpers/moo.js
  220. +25 −0 tests/dummy/app/transforms/element.js
  221. +6 −7 tests/dummy/app/transforms/just-a-string.js
  222. +10 −10 tests/dummy/app/transforms/object.js
  223. +15 −0 tests/dummy/config/deprecation-workflow.js
  224. +21 −0 tests/dummy/config/ember-cli-update.json
  225. +20 −27 tests/dummy/config/environment.js
  226. +6 −0 tests/dummy/config/optional-features.json
  227. +0 −3 tests/dummy/config/scenarios.js
  228. +26 −0 tests/dummy/config/targets.js
  229. +2 −2 tests/helpers/destroy-app.js
  230. +13 −55 tests/helpers/module-for-acceptance.js
  231. +3 −3 tests/helpers/resolver.js
  232. +7 −11 tests/helpers/start-app.js
  233. +151 −65 tests/helpers/utility-methods.js
  234. +24 −18 tests/index.html
  235. +25 −0 tests/integration/single-user-test.js
  236. +11 −5 tests/test-helper.js
  237. +277 −228 tests/unit/active-model-adapter-test.js
  238. +40 −0 tests/unit/converter/fixture-converter-test.js
  239. +78 −44 tests/unit/drf-adapter-test.js
  240. +0 −239 tests/unit/factory-guy-test-helper-test.js
  241. +970 −735 tests/unit/factory-guy-test.js
  242. +52 −0 tests/unit/fixture-builder-test.js
  243. +30 −0 tests/unit/get-pretenter-test.js
  244. +312 −254 tests/unit/json-adapter-test.js
  245. +802 −651 tests/unit/jsonapi-adapter-test.js
  246. +0 −163 tests/unit/mock-request-test.js
  247. +322 −0 tests/unit/mocks/mock-any-test.js
  248. +124 −0 tests/unit/mocks/mock-create-test.js
  249. +88 −0 tests/unit/mocks/mock-delete-test.js
  250. +201 −0 tests/unit/mocks/mock-find-all-test.js
  251. +137 −0 tests/unit/mocks/mock-find-record-test.js
  252. +75 −0 tests/unit/mocks/mock-links-test.js
  253. +159 −0 tests/unit/mocks/mock-query-record-test.js
  254. +133 −0 tests/unit/mocks/mock-query-test.js
  255. +215 −0 tests/unit/mocks/mock-request-test.js
  256. +107 −0 tests/unit/mocks/mock-update-test.js
  257. +21 −0 tests/unit/mocks/request-wrapper-test.js
  258. +157 −81 tests/unit/models/employee-test.js
  259. +20 −25 tests/unit/models/profile-test.js
  260. +45 −40 tests/unit/models/user-test.js
  261. +846 −655 tests/unit/rest-adapter-test.js
  262. +45 −0 tests/unit/scenario-test.js
  263. +1,863 −0 tests/unit/shared-adapter-behaviour.js
  264. +0 −51 tests/unit/shared-adapter-tests.js
  265. +53 −0 tests/unit/shared-common-behaviour.js
  266. +511 −0 tests/unit/shared-factory-guy-behaviour.js
  267. +0 −1,908 tests/unit/shared-factory-guy-test-helper-tests.js
  268. +0 −415 tests/unit/shared-factory-guy-tests.js
  269. +211 −101 tests/unit/utils/helper-functions-test.js
  270. +9 −0 vendor/pretender-shim.js
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": []
}
4 changes: 0 additions & 4 deletions .bowerrc

This file was deleted.

19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

[*.hbs]
insert_final_newline = false

[*.{diff,md}]
trim_trailing_whitespace = false
9 changes: 9 additions & 0 deletions .ember-cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
/**
Ember CLI sends analytics information by default. The data is completely
anonymous, but there are times when you might want to disable this behavior.

Setting `disableAnalytics` to true will prevent any data from being sent.
*/
"disableAnalytics": false
}
22 changes: 22 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# unconventional js
/blueprints/*/files/
/vendor/

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/
/node_modules/

# misc
/coverage/
!.*
.*/
.eslintcache

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
58 changes: 58 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
'use strict';

module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true,
},
},
plugins: ['ember'],
extends: [
'eslint:recommended',
'plugin:ember/recommended',
'plugin:prettier/recommended',
],
env: {
browser: true,
},
rules: {
'ember/no-actions-hash': 'off',
'ember/no-classic-classes': 'off',
'ember/no-classic-components': 'off',
'ember/require-tagless-components': 'off',
},
overrides: [
// node files
{
files: [
'./.eslintrc.js',
'./.prettierrc.js',
'./.template-lintrc.js',
'./ember-cli-build.js',
'./index.js',
'./testem.js',
'./blueprints/*/index.js',
'./config/**/*.js',
'./tests/dummy/config/**/*.js',
],
parserOptions: {
sourceType: 'script',
},
env: {
browser: false,
node: true,
},
plugins: ['node'],
extends: ['plugin:node/recommended'],
},
{
// Test files:
files: ['tests/**/*-test.{js,ts}'],
extends: ['plugin:qunit/recommended'],
},
],
};
120 changes: 120 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: CI

on:
push:
branches:
- main
- master
pull_request: {}

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
NODE_VERSION: '14.x'

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: '${{ env.NODE_VERSION }}'
cache: pnpm
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Lint
run: pnpm run lint


test:
name: Tests
runs-on: ${{ matrix.os }}
needs: lint

strategy:
matrix:
os: [ubuntu-latest]
browser: [chrome]

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: '${{ env.NODE_VERSION }}'
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Test
run: pnpm test:ember --launch chrome

try-scenarios:
name: Tests - ${{ matrix.ember-try-scenario }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.allow-failure }}
needs: test
timeout-minutes: 10

strategy:
fail-fast: true
matrix:
ember-try-scenario: [
ember-lts-3.20,
ember-lts-3.24,
ember-default-with-jquery,
ember-classic,
]
allow-failure: [false]
include:
- ember-try-scenario: ember-release
allow-failure: true
- ember-try-scenario: ember-beta
allow-failure: true
- ember-try-scenario: ember-canary
allow-failure: true

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: '${{ env.NODE_VERSION }}'
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Test
id: test
env:
EMBER_TRY_SCENARIO: ${{ matrix.ember-try-scenario }}
run: pnpm ember try:one $EMBER_TRY_SCENARIO
continue-on-error: ${{ matrix.allow-failure }}
- uses: mainmatter/continue-on-error-comment@v1
if: ${{ matrix.allow-failure }}
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
outcome: ${{ steps.test.outcome }}
test-id: ${{ matrix.ember-try-scenario }}


floating-dependencies:
name: Floating Dependencies
runs-on: ubuntu-latest
needs: lint

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: '${{ env.NODE_VERSION }}'
cache: pnpm
- name: Install Dependencies
run: pnpm install --no-lockfile

- name: Test
run: pnpm run test:ember --launch chrome
90 changes: 90 additions & 0 deletions .github/workflows/plan-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Release Plan Review
on:
push:
branches:
- main
- master
pull_request_target: # This workflow has permissions on the repo, do NOT run code from PRs in this workflow. See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
types:
- labeled
- unlabeled

concurrency:
group: plan-release # only the latest one of these should ever be running
cancel-in-progress: true

jobs:
check-plan:
name: "Check Release Plan"
runs-on: ubuntu-latest
outputs:
command: ${{ steps.check-release.outputs.command }}

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: 'master'
# This will only cause the `check-plan` job to have a "command" of `release`
# when the .release-plan.json file was changed on the last commit.
- id: check-release
run: if git diff --name-only HEAD HEAD~1 | grep -w -q ".release-plan.json"; then echo "command=release"; fi >> $GITHUB_OUTPUT

prepare_release_notes:
name: Prepare Release Notes
runs-on: ubuntu-latest
timeout-minutes: 5
needs: check-plan
permissions:
contents: write
issues: read
pull-requests: write
outputs:
explanation: ${{ steps.explanation.outputs.text }}
# only run on push event if plan wasn't updated (don't create a release plan when we're releasing)
# only run on labeled event if the PR has already been merged
if: (github.event_name == 'push' && needs.check-plan.outputs.command != 'release') || (github.event_name == 'pull_request_target' && github.event.pull_request.merged == true)

steps:
- uses: actions/checkout@v4
# We need to download lots of history so that
# github-changelog can discover what's changed since the last release
with:
fetch-depth: 0
ref: 'master'
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v4
- run: pnpm install --frozen-lockfile
- name: "Generate Explanation and Prep Changelogs"
id: explanation
run: |
set +e
pnpm release-plan prepare 2> >(tee -a release-plan-stderr.txt >&2)
if [ $? -ne 0 ]; then
echo 'text<<EOF' >> $GITHUB_OUTPUT
cat release-plan-stderr.txt >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
else
echo 'text<<EOF' >> $GITHUB_OUTPUT
jq .description .release-plan.json -r >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
rm release-plan-stderr.txt
fi
env:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}

- uses: peter-evans/create-pull-request@v6
with:
commit-message: "Prepare Release using 'release-plan'"
labels: "internal"
branch: release-preview
title: Prepare Release
body: |
This PR is a preview of the release that [release-plan](https://github.com/embroider-build/release-plan) has prepared. To release you should just merge this PR 👍
-----------------------------------------
${{ steps.explanation.outputs.text }}
58 changes: 58 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# For every push to the master branch, this checks if the release-plan was
# updated and if it was it will publish stable npm packages based on the
# release plan

name: Publish Stable

on:
workflow_dispatch:
push:
branches:
- main
- master

concurrency:
group: publish-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
check-plan:
name: "Check Release Plan"
runs-on: ubuntu-latest
outputs:
command: ${{ steps.check-release.outputs.command }}

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: 'master'
# This will only cause the `check-plan` job to have a result of `success`
# when the .release-plan.json file was changed on the last commit. This
# plus the fact that this action only runs on main will be enough of a guard
- id: check-release
run: if git diff --name-only HEAD HEAD~1 | grep -w -q ".release-plan.json"; then echo "command=release"; fi >> $GITHUB_OUTPUT

publish:
name: "NPM Publish"
runs-on: ubuntu-latest
needs: check-plan
if: needs.check-plan.outputs.command == 'release'
permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v4
- run: pnpm install --frozen-lockfile
- name: npm publish
run: pnpm release-plan publish --tag=alpha
env:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading