Skip to content

Commit

Permalink
Run linting on the generated project in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Sep 25, 2024
1 parent 6ec50f8 commit 5176adc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/default.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ describe('basic functionality', function () {
);
});

it('successfully lints', async function () {
let result = await execa('pnpm', ['lint'], {

Check failure on line 58 in tests/default.test.mjs

View workflow job for this annotation

GitHub Actions / Lint & Test

tests/default.test.mjs > basic functionality > successfully lints

ExecaError: Command failed with exit code 1: pnpm lint > [email protected] lint /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test > concurrently "pnpm:lint:*(!fix)" --names "lint:" [lint:css] [lint:css] > [email protected] lint:css /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test [lint:css] > stylelint "**/*.css" [lint:css] [lint:hbs] [lint:hbs] > [email protected] lint:hbs /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test [lint:hbs] > ember-template-lint . [lint:hbs] [lint:js] [lint:js] > [email protected] lint:js /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test [lint:js] > eslint . --cache [lint:js] [lint:css] pnpm run lint:css exited with code 0 [lint:hbs] [lint:hbs] pnpm run lint:hbs exited with code 0 [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/.eslintrc.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/.prettierrc.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/.stylelintrc.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/.template-lintrc.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/app/app.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/app/config/environment.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/app/initializers/test-init.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/app/instance-initializers/test-instance-init.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/app/router.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/app/routes/styles.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/config/environment.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/config/targets.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/ember-cli-build.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/testem-proxy.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/testem.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/tests/acceptance/app-init-test.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/tests/acceptance/custom-component-test.js [lint:js] 0:0 error Parsing error: Cannot use the decorators and decorators-legacy plugin together [lint:js] [lint:js] /tmp/tmp-1858-0izisd7A9ppC/fancy-app-in-test/tests/acceptance/styles-test.js [lint:js] 0:0 e
cwd: join(tmpDir.path, appName),
});

console.log(result.stdout);
});

it('successfully builds', async function () {
let result = await execa('pnpm', ['build'], {
cwd: join(tmpDir.path, appName),
Expand Down

0 comments on commit 5176adc

Please sign in to comment.