Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 9 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,24 @@ concurrency:
cancel-in-progress: true

jobs:
test:
name: "Tests"
lint:
name: "Lints"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 24
- run: pnpm i -f # force sync (injected dep)
- run: pnpm lint
- run: pnpm test:ember

try-scenarios:
name: ${{ matrix.try-scenario }}
test:
name: "Tests"
runs-on: ubuntu-latest
needs: 'test'

strategy:
fail-fast: false
matrix:
try-scenario:
- ember-lts-4.12
- ember-lts-5.4
- ember-release
- ember-beta
- ember-canary

steps:
- uses: actions/checkout@v6
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 24
- run: pnpm i -f # force sync (injected dep)
- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup
working-directory: test-app
- run: pnpm test
7,986 changes: 1,789 additions & 6,197 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

19 changes: 0 additions & 19 deletions test-app/.editorconfig

This file was deleted.

7 changes: 0 additions & 7 deletions test-app/.ember-cli

This file was deleted.

13 changes: 0 additions & 13 deletions test-app/.eslintignore

This file was deleted.

55 changes: 0 additions & 55 deletions test-app/.eslintrc.js

This file was deleted.

13 changes: 0 additions & 13 deletions test-app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
# compiled output
/dist/
/declarations/

# dependencies
/node_modules/

# misc
/.env*
/.pnp*
/.eslintcache
/coverage/
/npm-debug.log*
/testem.log
/yarn-error.log

# ember-try
/.node_modules.ember-try/
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try

# broccoli-debug
/DEBUG/
13 changes: 0 additions & 13 deletions test-app/.prettierignore

This file was deleted.

12 changes: 0 additions & 12 deletions test-app/.prettierrc.js

This file was deleted.

8 changes: 0 additions & 8 deletions test-app/.stylelintignore

This file was deleted.

5 changes: 0 additions & 5 deletions test-app/.stylelintrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions test-app/.template-lintrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions test-app/.watchmanconfig

This file was deleted.

57 changes: 0 additions & 57 deletions test-app/README.md

This file was deleted.

14 changes: 5 additions & 9 deletions test-app/app/app.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import Application from '@ember/application';
import Resolver from 'ember-resolver';
import loadInitializers from 'ember-load-initializers';
import config from 'test-app/config/environment';
import Application from 'ember-strict-application-resolver';

export default class App extends Application {
modulePrefix = config.modulePrefix;
podModulePrefix = config.podModulePrefix;
Resolver = Resolver;
modules = {
...import.meta.glob('./router.*', { eager: true }),
...import.meta.glob('./templates/**/*', { eager: true }),
};
}

loadInitializers(App, config.modulePrefix);
Empty file removed test-app/app/components/.gitkeep
Empty file.
17 changes: 17 additions & 0 deletions test-app/app/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
interface Config {
environment: 'development' | 'production';
locationType: 'history' | 'hash' | 'none' | 'auto';
rootURL: string;
EmberENV?: Record<string, unknown>;
APP: Record<string, unknown> & { rootElement?: string; autoboot?: boolean };
}

const ENV: Config = {
environment: import.meta.env.DEV ? 'development' : 'production',
rootURL: '/',
locationType: 'history',
EmberENV: {},
APP: {},
};

export default ENV;
14 changes: 0 additions & 14 deletions test-app/app/config/environment.d.ts

This file was deleted.

Empty file removed test-app/app/controllers/.gitkeep
Empty file.
Empty file removed test-app/app/helpers/.gitkeep
Empty file.
24 changes: 0 additions & 24 deletions test-app/app/index.html

This file was deleted.

Empty file removed test-app/app/models/.gitkeep
Empty file.
4 changes: 2 additions & 2 deletions test-app/app/router.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import EmberRouter from '@ember/routing/router';
import config from 'test-app/config/environment';

import { properLinks } from 'ember-primitives/proper-links';

import config from '#config';

@properLinks
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}

Router.map(function () {
// Add route declarations here
this.route('foo');
});
Empty file removed test-app/app/routes/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion test-app/app/styles/app.css

This file was deleted.

10 changes: 10 additions & 0 deletions test-app/app/templates/application.gts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<template>
<h2 id="title">Welcome to Ember</h2>

{{outlet}}

<a href="/foo">here</a>
<a href="/does-not-exist">here</a>
<a href="#title">here</a>
<a href="/#title">/ here</a>
</template>
10 changes: 0 additions & 10 deletions test-app/app/templates/application.hbs

This file was deleted.

Loading
Loading