Skip to content

Commit 0ed7336

Browse files
committed
Add prettier to lint, don't run lint with tests
1 parent 93c688b commit 0ed7336

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@ concurrency:
1111
cancel-in-progress: true
1212

1313
jobs:
14+
lint:
15+
name: Lints
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 10
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: pnpm/action-setup@v4
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 18
25+
cache: 'pnpm'
26+
- run: pnpm install
27+
- run: pnpm lint
28+
1429
test:
1530
name: Tests
1631
runs-on: ubuntu-latest
@@ -24,7 +39,6 @@ jobs:
2439
node-version: 18
2540
cache: 'pnpm'
2641
- run: pnpm install
27-
- run: pnpm lint
2842
- run: pnpm test:ember
2943

3044
test-node:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
"build": "ember build --environment=production",
2121
"coverage": "nyc report --reporter=text-lcov | codeclimate-test-reporter",
2222
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
23+
"lint:format": "prettier . --cache --check",
2324
"lint:hbs": "ember-template-lint .",
2425
"lint:js": "eslint .",
2526
"start": "ember serve",
26-
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
27+
"test": "concurrently \"npm:test:*\"",
2728
"test:ember": "ember test",
2829
"test:ember-compatibility": "ember try:each",
2930
"test:node": "nyc mocha 'node-tests/**/*-test.js'"

0 commit comments

Comments
 (0)