Skip to content

Commit 5d61f34

Browse files
committed
fix: CI cli-e2e
1 parent b7a4180 commit 5d61f34

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/actions/test/action.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@ runs:
1616
steps:
1717
- name: Lint
1818
shell: bash
19-
run: npx nx run-many -t lint --exclude website # --base=last-release <- add that back after fix
20-
19+
run: npx nx run-many -t lint --exclude website --base=last-release
2120
- name: Build packages
2221
shell: bash
23-
run: npx nx run-many -t build --parallel=false --exclude website --skip-nx-cache # --base=last-release <- add that back
22+
run: npx nx run-many -t build --parallel=false --exclude website --skip-nx-cache --base=last-release
2423

2524
- name: Test all except headless
2625
shell: bash
27-
run: npx nx run-many -t test # --base=last-release <- add that back
26+
run: npx nx run-many -t test --base=last-release
2827
env:
2928
NODE_OPTIONS: --experimental-vm-modules
3029

packages/cli-e2e/src/cli.smoke.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('Qwik UI CLI Smoke test', () => {
2323

2424
it('should be installed and add the button file', () => {
2525
execSync(
26-
'npx -y qwik-ui@0.3.3 init --e2e --projectRoot ./ --uiComponentsPath "src/components/ui" --rootCssPath "src/global.css" --installTailwind --style "simple" --components=button',
26+
'npx -y qwik-ui@e2e init --e2e --projectRoot ./ --uiComponentsPath "src/components/ui" --rootCssPath "src/global.css" --installTailwind --style "simple" --components=button',
2727
{
2828
cwd: projectDirectory,
2929
env: process.env,

packages/cli/bin/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ async function handleInit() {
195195

196196
// ADD QWIK UI CLI TO DEPENDENCIES
197197
log.info('Adding qwik-ui cli to package.json...');
198-
execSync(`${getPackageManagerCommand().addDev} qwik-ui@latest`, {
198+
const cliTag = args['e2e'] ? 'e2e' : 'latest';
199+
execSync(`${getPackageManagerCommand().addDev} qwik-ui@${cliTag}`, {
199200
stdio: 'inherit',
200201
});
201202

0 commit comments

Comments
 (0)