Skip to content

Commit 0cea39b

Browse files
committed
use npx to execute ember - fix node resolution
1 parent 0245b31 commit 0cea39b

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -87,63 +87,63 @@ jobs:
8787
matrix:
8888
command:
8989
# try:each
90-
- ./node_modules/.bin/ember try:each
90+
- npx ember try:each
9191

9292
# skip-cleanup option
93-
- ./node_modules/.bin/ember try:each --skip-cleanup
93+
- npx ember try:each --skip-cleanup
9494

9595
# config-path option
96-
- ./node_modules/.bin/ember try:each --config-path='../test/fixtures/dummy-ember-try-config.js'
96+
- npx ember try:each --config-path='../test/fixtures/dummy-ember-try-config.js'
9797

9898
# both ember-try options
99-
- ./node_modules/.bin/ember try:each --config-path='../test/fixtures/dummy-ember-try-config.js' --skip-cleanup true
99+
- npx ember try:each --config-path='../test/fixtures/dummy-ember-try-config.js' --skip-cleanup true
100100

101101
# try:ember
102-
- ./node_modules/.bin/ember try:ember '> 4.10.0 < 5.2.0'
103-
- ./node_modules/.bin/ember try:ember '4.9.0' --config-path='../test/fixtures/dummy-ember-try-config.js'
104-
- ./node_modules/.bin/ember try:ember '4.8.3' --skip-cleanup=true
102+
- npx ember try:ember '> 4.10.0 < 5.2.0'
103+
- npx ember try:ember '4.9.0' --config-path='../test/fixtures/dummy-ember-try-config.js'
104+
- npx ember try:ember '4.8.3' --skip-cleanup=true
105105

106106
# try:config
107-
- ./node_modules/.bin/ember try:config
108-
- ./node_modules/.bin/ember try:config --config-path='../test/fixtures/dummy-ember-try-config.js'
107+
- npx ember try:config
108+
- npx ember try:config --config-path='../test/fixtures/dummy-ember-try-config.js'
109109

110110
# try:one <scenario>
111-
- ./node_modules/.bin/ember try:one default
111+
- npx ember try:one default
112112

113113
# custom command
114-
- ./node_modules/.bin/ember try:one default --- ember help
114+
- npx ember try:one default --- ember help
115115

116116
# skip-cleanup option
117-
- ./node_modules/.bin/ember try:one default --skip-cleanup
117+
- npx ember try:one default --skip-cleanup
118118

119119
# config-path option
120-
- ./node_modules/.bin/ember try:one test1 --config-path='../test/fixtures/dummy-ember-try-config.js'
120+
- npx ember try:one test1 --config-path='../test/fixtures/dummy-ember-try-config.js'
121121

122122
# both ember-try options
123-
- ./node_modules/.bin/ember try:one test1 --config-path='../test/fixtures/dummy-ember-try-config.js' --skip-cleanup true
123+
- npx ember try:one test1 --config-path='../test/fixtures/dummy-ember-try-config.js' --skip-cleanup true
124124

125125
# custom command with options to command
126-
- ./node_modules/.bin/ember try:one default --- ember help --silent
126+
- npx ember try:one default --- ember help --silent
127127

128128
# custom command mixed with ember try's own option
129-
- ./node_modules/.bin/ember try:one default --skip-cleanup --- ember help --silent
129+
- npx ember try:one default --skip-cleanup --- ember help --silent
130130

131131
# try:reset
132-
- ./node_modules/.bin/ember try:reset
132+
- npx ember try:reset
133133

134134
# Environment variables availability
135-
- FOO="5" ./node_modules/.bin/ember try:one default --- ./fail-if-no-foo.sh
135+
- FOO="5" npx ember try:one default --- ./fail-if-no-foo.sh
136136

137-
- ./node_modules/.bin/ember try:one default --- FOO=5 ./fail-if-no-foo.sh
137+
- npx ember try:one default --- FOO=5 ./fail-if-no-foo.sh
138138

139139
# Custom, compound commands
140-
- ./node_modules/.bin/ember try:one default --- 'echo 1 && echo 2'
140+
- npx ember try:one default --- 'echo 1 && echo 2'
141141

142142
# Environment variables from config
143-
- ./node_modules/.bin/ember try:each --config-path='../test/fixtures/dummy-ember-try-config-different-env-vars.js'
143+
- npx ember try:each --config-path='../test/fixtures/dummy-ember-try-config-different-env-vars.js'
144144

145145
# fs-extra versions 7.x and above caused a regresion
146-
- ./node_modules/.bin/ember try:each --config-path='../test/fixtures/dummy-ember-try-config-fs-extra-scenarios.js'
146+
- npx ember try:each --config-path='../test/fixtures/dummy-ember-try-config-fs-extra-scenarios.js'
147147

148148
steps:
149149
- uses: actions/checkout@v4
@@ -195,7 +195,7 @@ jobs:
195195
- name: install smoke-test-app deps
196196
run: npm install
197197
working-directory: smoke-test-app
198-
- run: ./node_modules/.bin/ember try:one test2 --config-path='../test/fixtures/dummy-ember-try-config-with-npm-scenarios.js'
198+
- run: npx ember try:one test2 --config-path='../test/fixtures/dummy-ember-try-config-with-npm-scenarios.js'
199199
working-directory: smoke-test-app
200200

201201
yarn-smoke-tests:
@@ -227,7 +227,7 @@ jobs:
227227
- name: install smoke-test-app deps
228228
run: yarn install
229229
working-directory: smoke-test-app
230-
- run: ./node_modules/.bin/ember try:one test2 --config-path='../test/fixtures/dummy-ember-try-config-with-yarn-scenarios.js'
230+
- run: npx ember try:one test2 --config-path='../test/fixtures/dummy-ember-try-config-with-yarn-scenarios.js'
231231
working-directory: smoke-test-app
232232

233233
windows-smoke-tests:
@@ -254,5 +254,5 @@ jobs:
254254
- name: install smoke-test-app deps
255255
run: npm install
256256
working-directory: smoke-test-app
257-
- run: ./node_modules/.bin/ember try:one test2 --config-path='../test/fixtures/dummy-ember-try-config-with-npm-scenarios.js'
257+
- run: npx ember try:one test2 --config-path='../test/fixtures/dummy-ember-try-config-with-npm-scenarios.js'
258258
working-directory: smoke-test-app

0 commit comments

Comments
 (0)