Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1095 commits
Select commit Hold shift + click to select a range
a3457b4
Monorepo setup: move to packages/fastboot-express-middleware
xg-wang Nov 28, 2020
2bee927
Merge remote-tracking branch 'local/fastboot/master'
xg-wang Nov 28, 2020
f67d7a0
Merge remote-tracking branch 'local/fastboot-app-server/master'
xg-wang Nov 28, 2020
9f5b056
Merge remote-tracking branch 'local/fastboot-express-middleware/master'
xg-wang Nov 28, 2020
bd49886
Match packages versions and run tests in CI
xg-wang Nov 16, 2020
5451050
Integration tests fist pass
xg-wang Nov 19, 2020
e3712c5
update readies, deps
xg-wang Nov 28, 2020
38c04ca
add descriptions to test apps to explain purpose
xg-wang Jan 17, 2021
924385e
Fix treeForFastBoot when project is an addon
simonihmig Jan 22, 2021
dcc4294
Run new integration tests in ci
xg-wang Jan 23, 2021
9e0b053
Merge pull request #805 from xg-wang/monorepo
Jan 29, 2021
15b982a
Release 3.2.0-beta.1
Jan 29, 2021
25703bd
Revert version bumps for test-packages
Jan 29, 2021
3f54024
Merge pull request #808 from simonihmig/fix-treeforfb
Jan 29, 2021
5e917ae
Merge pull request #803 from kiwiupover/dave/custom-fastboot-app
Jan 29, 2021
db80797
Update custom-fastboot-app to use current version
Jan 29, 2021
9c9f1c9
Release 3.2.0-beta.2
Jan 29, 2021
820a560
doc: update CONTRIBUTING.md for code structure and tests
xg-wang Feb 11, 2021
7673ee5
[fastboot-app-server] turn on gzip by default
xg-wang Feb 25, 2021
2fb084d
Merge pull request #810 from xg-wang/contributing-doc
xg-wang Feb 25, 2021
211a934
Merge pull request #811 from ember-fastboot/gzip
Feb 26, 2021
406bc3f
Throw a helpful error when people use `isFastboot` instead of `isFast…
bertdeblock Mar 16, 2021
2a6ed5d
Merge pull request #814 from bertdeblock/throw-when-using-nonexistent…
Mar 18, 2021
f8b4a45
Convert co to async in test; cleanup some configurations
xg-wang Apr 6, 2021
4dfb9e6
reroll yarn.lock
xg-wang Apr 6, 2021
e4d0b7c
Merge pull request #821 from ember-fastboot/co-to-async
xg-wang Apr 6, 2021
a62e70a
Remove deprecated features for ember-cli-fastboot v3 release
xg-wang Apr 4, 2021
25dd485
Use local example-addon instead of ember-fastboot-build-example
xg-wang Apr 5, 2021
c7f843c
do not track as submodule
xg-wang Apr 5, 2021
33fa701
Merge pull request #820 from ember-fastboot/deprecations
xg-wang Apr 7, 2021
0e88da8
Drop module unification support
xg-wang Apr 7, 2021
2594fd0
Provide instructions how to debug app via VS Code
SergeAstapov Apr 20, 2021
0d11ef2
Merge pull request #825 from ember-fastboot/drop-mu
mansona May 28, 2021
4fd0dc4
Testing ember-cli-fastboot-testing in new test-package #831
ankushdharkar May 29, 2021
f2d3a5c
Renamed to ember-cli-fastboot-testing-app and removed package tests #831
ankushdharkar May 29, 2021
c9a3b43
welcome-page test #831
ankushdharkar May 29, 2021
b615e09
Remove empty mocha tests #831
ankushdharkar May 29, 2021
8a38f26
Fix indentation in yml #831
ankushdharkar May 29, 2021
8cec824
Review changes. Removed unnecessary files + depenedencies #831
ankushdharkar Jun 7, 2021
256f4a5
Update the README for the `ember-cli-fastboot-testing` test #831
ankushdharkar Jun 7, 2021
b107eb4
Restore the legacy tests that were removed
kiwiupover Jun 8, 2021
b8b7181
stop testing with npm@4
kiwiupover Jun 8, 2021
d30117d
Adding npm package co to run legacy tests
kiwiupover Jun 8, 2021
b6b17af
Merge pull request #836 from kiwiupover/restore-legacy-tests
mansona Jun 9, 2021
1db6e59
Merge branch 'master' into feature/fastboot-testing-app-#831
ankushdharkar Jun 11, 2021
0526362
Add the GitHub CI file back
ankushdharkar Jun 12, 2021
18d41f0
Merge pull request #832 from ankushdharkar/feature/fastboot-testing-a…
suchitadoshi1987 Jun 14, 2021
00ff0ae
update ember-cli-fastboot using ember-cli-update
mansona May 31, 2021
b7c3934
re-enable application-template-wrapper
mansona Jun 1, 2021
6751c0c
Update node engine requirement
xg-wang Apr 7, 2021
b472ee5
remove v10 and add v16 to node-version matrix
mansona May 28, 2021
1520085
increase timeout to fix Windows tests
mansona Jun 7, 2021
6fb00f0
Add a default state for metadata
suchitadoshi1987 Jul 21, 2021
0aefab4
add tests
suchitadoshi1987 Jul 21, 2021
d549345
Merge pull request #834 from ember-fastboot/update
xg-wang Jul 23, 2021
a0dbd93
use existing test package
suchitadoshi1987 Aug 2, 2021
effd25a
Add test scripts
xg-wang Aug 3, 2021
589faf6
Merge pull request #842 from ember-fastboot/scripts
xg-wang Aug 3, 2021
b9aa946
add unit test
suchitadoshi1987 Aug 3, 2021
d6fd6d7
fix ci
suchitadoshi1987 Aug 3, 2021
b009505
revert ci fix
suchitadoshi1987 Aug 3, 2021
909c141
Merge pull request #840 from ember-fastboot/suchita/metadefault
suchitadoshi1987 Aug 3, 2021
69bbcfd
Fix Github actions not running
xg-wang Aug 3, 2021
246ff7c
Update node versions in CI tests
xg-wang Aug 3, 2021
c8cf0f5
Skip broken node 16
xg-wang Aug 6, 2021
341fcef
temporarily skip broken test
xg-wang Aug 6, 2021
412fb3b
Fix CI
xg-wang Aug 7, 2021
d011ae1
fix Cannot find module 'abortcontroller-polyfill/dist/cjs-ponyfill'
xg-wang Aug 8, 2021
4ad4eeb
Merge pull request #843 from ember-fastboot/fix-ci
xg-wang Aug 8, 2021
2d89348
Avoid implicit injection deprecation
snewcomer Aug 2, 2021
0ef9404
Merge pull request #841 from snewcomer/sn/no-deprecation-implicit
xg-wang Aug 8, 2021
edfeb5b
Fix use of Ember global
simonihmig Aug 20, 2021
32d6f07
Fallback to Ember global if `require('ember')` is not available
simonihmig Aug 20, 2021
6de4810
Fix mocha tests nested packages in node_modules not using workspaces
xg-wang Aug 22, 2021
22d628b
Merge pull request #851 from ember-fastboot/fix-nm
xg-wang Aug 22, 2021
3887090
[test] Update custom output paths in index.html
xg-wang Aug 22, 2021
e6ff698
Merge pull request #852 from ember-fastboot/fix-outputpaths
xg-wang Aug 22, 2021
fc6fc24
Fix fastboot-script assets with cutom root url
xg-wang Aug 22, 2021
dd38417
Support extracting fastboot specific config from meta tag
xg-wang Aug 22, 2021
9a471e5
Merge pull request #853 from ember-fastboot/html-entry
xg-wang Aug 23, 2021
81db617
Release 3.2.0-beta.3
mansona Sep 10, 2021
6903f78
Merge pull request #854 from ember-fastboot/fastboot-config
Sep 10, 2021
f9b5f2a
Merge pull request #849 from simonihmig/fix-ember-global
Sep 10, 2021
8be7162
Merge pull request #826 from SergeAstapov/patch-1
Sep 10, 2021
9050432
Avoid implicit injection _fastbootInfo deprecation pt 2
snewcomer Sep 13, 2021
a0ddbaa
better comment
snewcomer Sep 13, 2021
46ad78a
Merge pull request #857 from snewcomer/sn/fix-implicit-injection-set
mansona Sep 14, 2021
0e34f7e
add ember-try to testing
mansona Sep 14, 2021
ff214f5
add no-deprecations ember-try scenarios
mansona Sep 14, 2021
e185b81
fix deprecations in tests
mansona Sep 14, 2021
7a9dd6c
Release 3.2.0-beta.4
mansona Sep 14, 2021
9f0b224
Upgrade Mocha across packages and fix mocha.opts configuration deprec…
SergeAstapov Oct 6, 2021
8ac1c8d
Merge pull request #860 from SergeAstapov/upgrade-mocha
xg-wang Oct 7, 2021
1563a86
Removes call to deprecated OutgoingMessage.prototype._headers
SergeAstapov Oct 6, 2021
38e8b50
Merge pull request #859 from SergeAstapov/fix-deprecation
Oct 8, 2021
6107ada
Merge pull request #858 from ember-fastboot/add-ember-try
Oct 19, 2021
af1032e
Add 3.24, 3.28 to ember-try, add auto-import@v2
NullVoxPopuli Oct 10, 2021
793a509
remove yarn-error.log
NullVoxPopuli Oct 19, 2021
8bd8a15
fix gitignore
NullVoxPopuli Oct 19, 2021
1dfc8b9
Merge pull request #861 from NullVoxPopuli/support-ember-4
Oct 19, 2021
ad3a104
Ensure rehydration works on Ember < 3.27
Oct 20, 2021
f19219d
Merge pull request #862 from ember-fastboot/ffs-var-sucks
Oct 20, 2021
3a9abb2
Release 3.2.0-beta.5
ef4 Nov 24, 2021
dd6440a
Cache dependencies in GitHub Actions CI workflow
SergeAstapov Nov 26, 2021
4dc6761
Update .npmignore to ignore .github and test folders
SergeAstapov Nov 26, 2021
3bc6b69
Remove unused nested github actions setup
SergeAstapov Nov 27, 2021
2c75fba
Merge pull request #864 from SergeAstapov/ci-caching
mansona Jan 12, 2022
193e13d
Merge pull request #865 from SergeAstapov/update-npmignore
mansona Jan 12, 2022
b507ca3
Make edition=octane in ember-cli-fastboot for Ember v4 compatibility
SergeAstapov Nov 25, 2021
e2867dd
Use ember-source 3.28.6 in legacy mocha tests
SergeAstapov Nov 26, 2021
c3ebff1
Update dependencies to fix deprecations and not fail with Ember v4
SergeAstapov Nov 26, 2021
eefec37
Bump Ember CLI to 4.1
SergeAstapov Jan 24, 2022
52549f7
Update mocha test to use latest Ember.js and Ember Data
SergeAstapov Jan 24, 2022
81a11fd
Remove `ember-welcome-page` from mocha test
SergeAstapov Jan 24, 2022
8914cae
Add `config.targets.js` file with `node: 'current'` to mocha tests
SergeAstapov Jan 24, 2022
e3637f3
Use `this.` in templates
SergeAstapov Jan 24, 2022
db0e990
Merge pull request #866 from SergeAstapov/fix-ci
mansona Jan 25, 2022
b8a0fc9
Merge pull request #867 from SergeAstapov/remove-nested-github-actions
mansona Jan 25, 2022
c05fb3a
Update and synchronize dependencies in the monorepo
SergeAstapov Jan 24, 2022
be7ff2f
Merge pull request #886 from SergeAstapov/bump-deps
mansona Jan 28, 2022
0f1dc96
Release 3.2.0
ef4 Feb 9, 2022
db21ad8
Add option to disable default request logging in fastbootExpressMiddl…
jurgenwerk Mar 14, 2022
083de34
Add logging section to the README
jurgenwerk Mar 15, 2022
76310dc
Update outdated information in overview section about support
Mar 20, 2022
af407ea
Update known limitations summary line
Mar 20, 2022
93bda88
Merge pull request #890 from jurgenwerk/master
ef4 Mar 21, 2022
898bcd1
committing yarn lock
ef4 Mar 21, 2022
01a9f9b
Release 3.3.0
ef4 Mar 21, 2022
d33cd8f
Pass the log argument to worker in fastboot-app-server
Aierie Mar 29, 2022
ec6f0ec
Fixing readme
ef4 Apr 18, 2022
b76eb3e
Merge pull request #891 from rahulk94/chore/remove-outdated-readme-wa…
Jun 13, 2022
c85a958
fix: removes slow leak by emptying cache for source maps
gabrielcsapo Jun 13, 2022
aff74f6
Merge pull request #895 from gabrielcsapo/gabrielcsapo/empty-cache-st…
Jun 15, 2022
f82d318
Release 3.3.1
Jun 15, 2022
d09d8c5
Merge pull request #892 from Aierie/worker-receives-log-argument
ef4 Jun 21, 2022
703e788
Release 3.3.2
ef4 Jun 21, 2022
03c8d40
update to current verions of Node and Yarn
mikrostew Nov 29, 2022
4d8cac3
fix the legacy mocha tests
mikrostew Nov 29, 2022
7730353
fix the ember-try tests
mikrostew Nov 29, 2022
439ed4e
update workerpool for node16 fix
mikrostew Nov 29, 2022
5533d60
I think this test is timing out for Windows
mikrostew Dec 1, 2022
43c4116
fix: Provide a more meaningful error when whitelist entry is missing
runspired Dec 7, 2022
c02722b
Merge pull request #902 from mikrostew/fix-ci
ef4 Dec 8, 2022
d7d453c
remove implicit injections
mikrostew Dec 8, 2022
9ad0293
also test against 4.4
mikrostew Dec 8, 2022
f962f2e
Merge pull request #904 from mikrostew/implicit-injections
ef4 Dec 8, 2022
4ddd499
run prettier
ef4 Dec 12, 2022
1c61615
Merge pull request #903 from runspired/patch-1
ef4 Dec 14, 2022
e7e706b
Release 4.0.0
Dec 16, 2022
82cd7f7
feat: adds a environment variable to opt out of source maps
gabrielcsapo Dec 19, 2022
5a1c5f1
Merge pull request #896 from gabrielcsapo/gabrielcsapo/sourcemaps-opt…
nlfurniss Dec 19, 2022
a131d93
Release 4.1.0
Dec 19, 2022
e665b40
remove deprecated implicit injection
Jan 9, 2023
329297a
chore: updates correct name for variable maxSandboxQueue -> maxSandbo…
gabrielcsapo Jan 31, 2023
8af9ba7
Merge pull request #906 from gabrielcsapo/patch-1
Feb 2, 2023
832b5a0
Update readme examples to use native class syntax
SergeAstapov Mar 17, 2023
76108fd
Merge pull request #905 from amiarSlimane/remove-deprecated-implicit-…
mansona May 5, 2023
8f64e06
Merge pull request #912 from SergeAstapov/patch-1
mansona May 5, 2023
14238e0
Release 4.1.1
mansona May 5, 2023
a4f3268
move to pnpm
mansona May 26, 2023
c76838c
update ember-try
mansona May 26, 2023
29ea697
remove strange committed node_modules package
mansona May 27, 2023
369bfe4
fix incorrect name in empty-package-json
mansona May 27, 2023
d4c30c2
add timeouts to all tests
mansona May 29, 2023
6af0f1d
Merge pull request #917 from ember-fastboot/use-pnpm
mansona May 29, 2023
f7dd75d
add linting CI workflow
mansona Jun 1, 2023
e00ae34
make sure there is a lint script in all packages
mansona Jun 1, 2023
5ccfe8d
fix lint in fastboot
mansona Jun 1, 2023
1d788a7
add lint-to-the-future to ember-cli-fastboot
mansona Jun 1, 2023
a84de2a
run lint-to-the-future ignore in ember-cli-fastboot
mansona Jun 1, 2023
ddbfeb3
Merge pull request #920 from ember-fastboot/linting
mansona Jun 3, 2023
06aa8d7
also lint test-packages
mansona Sep 2, 2023
414d37f
Merge pull request #926 from ember-fastboot/fix-linting
mansona Sep 2, 2023
4605b53
fix json stringify in fastboot-config
mansona Nov 14, 2023
41a5c87
Merge pull request #929 from ember-fastboot/fix-stringify
mansona Nov 14, 2023
e66e066
update release-it
mansona Nov 14, 2023
9774a94
Merge pull request #931 from ember-fastboot/update-release-it
mansona Nov 14, 2023
73919ae
Release 4.1.2
mansona Nov 14, 2023
f5deb5a
update CI action versions
mansona Feb 11, 2024
00e0cc9
fix pnpm-lockfile
mansona Feb 11, 2024
242683f
Merge pull request #932 from ember-fastboot/update-ci
mansona Feb 11, 2024
e9a12df
add a classic-app-template for test scenarios
mansona May 29, 2023
6e0460f
add a basic test scenario
mansona May 29, 2023
e329579
add scenario-tester CI
mansona May 29, 2023
eaf63d1
add .npmrc file
mansona Sep 1, 2023
ad4911c
move a shoebox test out of pre-built fixtures
mansona Sep 1, 2023
d542f21
make sure the request is optional in the fastboot service
mansona Oct 27, 2023
9beeeb7
simplify scenario setup
mansona Oct 27, 2023
ed2719f
move onerror-per-visit test to scenario-tester
mansona Oct 27, 2023
c6bfc39
remove duplicate lint
mansona Oct 27, 2023
dd577e9
move multivalue-headers test to scenario-tester
mansona Oct 28, 2023
75c297a
move app-with-metadata tests to scenario-tester
mansona Oct 29, 2023
8934363
move integration tests to scenario-tester
mansona Oct 30, 2023
d3855ab
remove integration test from github workflow
mansona Oct 30, 2023
0711385
fix lints
mansona Oct 30, 2023
f6cd7fe
fix dependencies of some test packages
mansona Oct 30, 2023
f7c13d8
Fix discover matrix
mansona Oct 30, 2023
c398422
move fastboot-config-test to scenario tester
mansona Feb 10, 2024
f54651d
move fastboot-location-config to scenario-tester
mansona Feb 11, 2024
418c133
update action versions
mansona Feb 11, 2024
b6d08f7
remove linking package script
mansona Feb 11, 2024
b49ff5c
rename fastboot-config-location test
mansona Feb 11, 2024
60d6ce7
move fastboot-location-test to scenario-tester
mansona Feb 11, 2024
0ec0334
move custom-output-paths test to scenario-tester
mansona Feb 13, 2024
d7e3735
fix webpack crash on modern node
mansona Feb 13, 2024
4ef1801
fix package.json test
mansona Feb 13, 2024
c2699ef
move request-details test to scenario-tester
mansona Feb 13, 2024
5abf0a6
fix config-location test
mansona Feb 13, 2024
19f6f16
move root-url test to scenario-tester
mansona Feb 13, 2024
a5dbdf0
don't lint node_modules in test scenarios
mansona Feb 13, 2024
aafe01f
fix webpack dependency in ember-cli-fastboot
mansona Feb 13, 2024
52ba4fd
add @ember/string for tests
mansona Feb 13, 2024
dbb25cd
update embroider/test-setup
mansona Feb 13, 2024
74b5508
reset blueprint using ember-cli-update
mansona Feb 14, 2024
1c768fa
Merge pull request #919 from ember-fastboot/scenario-tester
mansona Apr 30, 2024
0589633
v3.28.6...v4.4.1
mansona Apr 30, 2024
6e798af
update to v4.8 with ember-cli-update
mansona Apr 30, 2024
ab8f4d4
update to v4.12 with ember-cli-update
mansona Apr 30, 2024
497ea76
fix ember-try scenarios
mansona Apr 30, 2024
de6b3ad
fix workspaces
mansona Apr 30, 2024
c32445b
fix lint
mansona Apr 30, 2024
1e6ed03
Merge pull request #934 from ember-fastboot/update
mansona Apr 30, 2024
ad2e73a
update to v5.4 with ember-cli-update
mansona Apr 30, 2024
2a4683a
update to v5.8 using ember-cli-update
mansona Apr 30, 2024
b24b018
fix lint
mansona Apr 30, 2024
a2e0854
fix ember-try
mansona Apr 30, 2024
038bd02
Merge pull request #935 from ember-fastboot/update-ember-more
mansona May 2, 2024
91646e1
start using release-plan
mansona May 2, 2024
c8748a7
Fix embroider-optimised
mansona May 2, 2024
ae9302d
Merge pull request #937 from ember-fastboot/release-plan
mansona May 2, 2024
f8ee13a
Merge pull request #939 from ember-fastboot/embroider
mansona May 2, 2024
584c196
add names to private tests packages
mansona May 2, 2024
5f13b3c
Merge pull request #941 from ember-fastboot/fix-release
mansona May 2, 2024
5ec8051
mark fastboot-test-scenarios as private
mansona May 2, 2024
382d7d0
Merge pull request #942 from ember-fastboot/fix-fastboot-test-scenarios
mansona May 2, 2024
01f7a9d
Prepare Release using 'release-plan'
mansona May 2, 2024
6181690
Merge pull request #940 from ember-fastboot/release-preview
mansona May 2, 2024
c6ee0e3
fix ember-source peer declaration
mansona May 2, 2024
6006f1d
Merge pull request #943 from ember-fastboot/fix-peer
mansona May 2, 2024
19c43df
always use workspace deps
mansona May 2, 2024
f11c789
Merge pull request #944 from ember-fastboot/workspace-deps
mansona May 2, 2024
543e26f
Prepare Release using 'release-plan'
mansona May 2, 2024
a87ef5b
Merge pull request #945 from ember-fastboot/release-preview
mansona May 2, 2024
fce5146
Update url for fastboot-app-server in package.json for npm
SergeAstapov May 21, 2024
70b8e5b
Merge pull request #946 from SergeAstapov/patch-1
mansona May 21, 2024
9661d71
Prepare Release using 'release-plan'
mansona May 21, 2024
c786331
Merge pull request #947 from ember-fastboot/release-preview
mansona May 21, 2024
2b35ef8
Update url for fastboot-express-middleware in package.json for npm
SergeAstapov May 22, 2024
6904bea
Merge pull request #949 from SergeAstapov/patch-1
mansona May 22, 2024
9d345b3
feat: upgrade ember-cli-htmlbars from 5.7.2 to 6.3.0
snyk-bot May 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

root = true


[*]
end_of_line = lf
charset = utf-8
Expand All @@ -17,4 +16,4 @@ indent_size = 2
insert_final_newline = false

[*.{diff,md}]
trim_trailing_whitespace = false
trim_trailing_whitespace = false
199 changes: 199 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
name: CI

on:
pull_request: {}
push:
# Filtering branches here prevents duplicate builds from pull_request and push
branches:
- master
- beta
- 'v*'
- /^greenkeeper.*$/

# Always run CI for tags
tags:
- '*'

# Early issue detection: run CI weekly on Sundays
schedule:
- cron: '0 6 * * 0'

jobs:
lint-all-packages:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 7
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm lint

test-all-packages:
name: Ember Tests
runs-on: ${{ matrix.os }}
timeout-minutes: 15

strategy:
fail-fast: false
matrix:
node-version: [16.x, 14.x]
os: [ubuntu-latest, windows-latest]

steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm test:ember-cli-fastboot
- name: Run fastboot Tests
if: ${{ matrix.os != 'windows-latest' }}
run: pnpm test:fastboot
- run: pnpm test:fastboot-express-middleware
- run: pnpm test:fastboot-app-server

test-packages:
name: Test Packages
runs-on: ${{ matrix.os }}
timeout-minutes: 15

strategy:
fail-fast: false
matrix:
node-version: [16.x, 14.x]
os: [ubuntu-latest, windows-latest]

steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm --filter basic-app test:mocha
- run: pnpm --filter custom-fastboot-app test:mocha
- run: pnpm --filter ember-cli-fastboot-testing-app test:ember

test-legacy-mocha:
name: Legacy Mocha Tests - ${{ matrix.node-version }}
runs-on: ubuntu-latest
timeout-minutes: 15

strategy:
fail-fast: false
matrix:
node-version: [16.x, 14.x]

steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm --filter ember-cli-fastboot test:mocha

try-scenarios:
name: "ember-try for ember-cli-fastboot: ${{ matrix.ember-try-scenario }}"
runs-on: ubuntu-latest
timeout-minutes: 7

strategy:
fail-fast: false
matrix:
ember-try-scenario:
- ember-lts-3.16
- ember-lts-3.20
- ember-lts-3.24
- ember-lts-3.28
- ember-lts-4.4
- ember-lts-4.8
- ember-lts-4.12
- ember-lts-5.4
- ember-release
- ember-beta
- ember-canary
- embroider-safe
- embroider-optimized
- no-deprecations
- ember-release-no-deprecations

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 7
- uses: actions/setup-node@v4
with:
node-version: 14
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: test
run: pnpm --filter ember-cli-fastboot exec ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup

discover_matrix:
runs-on: ubuntu-latest

outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 7
- uses: actions/setup-node@v4
with:
node-version: 16
cache: pnpm
- run: pnpm install --frozen-lockfile
- id: set-matrix
working-directory: test-packages/test-scenarios
run: echo "matrix=$(npm run --silent test:list -- --matrix 'npm run test -- --filter %s:')" >> $GITHUB_OUTPUT

scenario-tester:
needs: discover_matrix
name: ${{ matrix.name }}
runs-on: ubuntu-latest
timeout-minutes: 7

strategy:
fail-fast: false
matrix: ${{fromJson(needs.discover_matrix.outputs.matrix)}}

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 7
- uses: actions/setup-node@v4
with:
node-version: 16
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: test
run: ${{ matrix.command }}
working-directory: test-packages/test-scenarios
93 changes: 93 additions & 0 deletions .github/workflows/plan-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Release Plan Review
on:
push:
branches:
- main
- master
pull_request:
types:
- labeled

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
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' && 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@v3
with:
version: 8
- run: pnpm install --frozen-lockfile

- name: "Generate Explanation and Prep Changelogs"
id: explanation
run: |
set +e
pnpm release-plan prepare 2> >(tee -a stderr.log >&2)
if [ $? -ne 0 ]; then
echo 'text<<EOF' >> $GITHUB_OUTPUT
cat stderr.log >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
else
echo 'text<<EOF' >> $GITHUB_OUTPUT
jq .description .release-plan.json -r >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
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 }}
62 changes: 62 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# 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@v3
with:
version: 8
- run: pnpm install --frozen-lockfile
- name: npm publish
run: pnpm release-plan publish

env:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading