Skip to content

Commit

Permalink
Widen ember-modifier dependency requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeAstapov committed Apr 22, 2022
1 parent 98a9f7a commit 6106fe7
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 22 deletions.
47 changes: 45 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@ jobs:
with:
node-version: 12.x
cache: yarn

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Lint Addon
run: yarn lint
working-directory: addon

- name: Lint Test App
run: yarn lint
working-directory: test-app

- name: Run Tests
run: yarn test:ember
working-directory: test-app
Expand All @@ -47,11 +51,14 @@ jobs:
with:
node-version: 12.x
cache: yarn

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Lint
run: yarn lint
working-directory: docs

- name: Run Tests
run: yarn test:ember
working-directory: docs
Expand All @@ -67,8 +74,10 @@ jobs:
with:
node-version: 12.x
cache: yarn

- name: Install Dependencies
run: yarn install --no-lockfile

- name: Run Tests
run: yarn test:ember
working-directory: test-app
Expand Down Expand Up @@ -96,8 +105,6 @@ jobs:
- ember-classic
- embroider-safe
- embroider-optimized
- ember-modifier-2.x
- ember-modifier-3.1

steps:
- uses: actions/checkout@v3
Expand All @@ -106,8 +113,44 @@ jobs:
with:
node-version: 12.x
cache: yarn

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Run Tests
run: ../node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
working-directory: test-app

ember-modifier-scenarios:
name: ${{ ember-modifier-scenario }}
runs-on: ubuntu-latest
timeout-minutes: 20
needs: 'test'

strategy:
fail-fast: false
matrix:
ember-modifier-scenario:
- ember-modifier@2
- ember-modifier@3.1
- ember-modifier@3.2
- ember-modifier@^4.0.0-beta.0

steps:
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 12.x
cache: yarn

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Update ember-modifier version
run: yarn add -D ${{ matrix.ember-modifier-scenario }}
working-directory: addon

- name: Run Tests
run: yarn test:ember
working-directory: test-app
2 changes: 1 addition & 1 deletion addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"dependencies": {
"@embroider/addon-shim": "^1.5.0",
"ember-destroyable-polyfill": "^2.0.3",
"ember-modifier": "^2.1.2 || ^3.1.0",
"ember-modifier": "^2.1.2 || ^3.1.0 || ^4.0.0",
"ember-modifier-manager-polyfill": "^1.2.0"
},
"devDependencies": {
Expand Down
14 changes: 0 additions & 14 deletions test-app/config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ const { embroiderSafe, embroiderOptimized } = require('@embroider/test-setup');

module.exports = async function () {
return {
/**
* `ember-classic` scenario should not use `useWorkspaces`
* as only test-app need to get classic flags.
* Otherwise, this scenario would fail.
*/
useWorkspaces: process.argv.every((a) => !a.includes('ember-classic')),
useYarn: true,
scenarios: [
{
Expand Down Expand Up @@ -125,14 +119,6 @@ module.exports = async function () {
},
},
},
{
name: 'ember-modifier-3.1',
npm: {
devDependencies: {
'ember-modifier': '~3.1.0',
},
},
},
],
};
};
4 changes: 0 additions & 4 deletions test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
"doc": "doc",
"test": "tests"
},
"workspaces": [
"../addon",
"../docs"
],
"scripts": {
"build": "ember build --environment=production",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5415,7 +5415,7 @@ ember-modifier-manager-polyfill@^1.2.0:
ember-cli-version-checker "^2.1.2"
ember-compatibility-helpers "^1.2.0"

"ember-modifier@^2.1.2 || ^3.1.0":
"ember-modifier@^2.1.2 || ^3.1.0 || ^4.0.0":
version "3.2.7"
resolved "https://registry.yarnpkg.com/ember-modifier/-/ember-modifier-3.2.7.tgz#f2d35b7c867cbfc549e1acd8d8903c5ecd02ea4b"
integrity sha512-ezcPQhH8jUfcJQbbHji4/ZG/h0yyj1jRDknfYue/ypQS8fM8LrGcCMo0rjDZLzL1Vd11InjNs3BD7BdxFlzGoA==
Expand Down

0 comments on commit 6106fe7

Please sign in to comment.