Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: create separate CI jobs for linting and testing #56

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,24 @@ on:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
all:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install deps
run: npm ci
- name: Build translations
run: npm run intl:translations
- name: Run lint
run: npm run lint
test:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
"intl:translations": "npm-run-all --print-label --parallel intl:translations:*",
"lint:eslint": "eslint --cache .",
"lint:format": "prettier --cache --check .",
"lint": "npm-run-all --print-label --parallel lint:*",
"lint": "npm-run-all --print-label --parallel --aggregate-output lint:*",
"types:main": "tsc -p src/main/tsconfig.json",
"types:services": "tsc -p src/services/tsconfig.json",
"types:preload": "tsc -p src/preload/tsconfig.json",
"types:renderer": "tsc -p src/renderer/tsconfig.json",
"types": "npm-run-all --print-label --parallel --continue-on-error types:*",
"test": "npm-run-all --print-label --parallel lint types vitest:run",
"types": "npm-run-all --print-label --parallel --continue-on-error --aggregate-output types:*",
"test": "npm-run-all --print-label --parallel --aggregate-output types vitest:run",
"vitest:run": "vitest run --config ./src/renderer/vite.config.js",
"vitest:watch": "vitest watch --config ./src/renderer/vite.config.js",
"vite:dev": "vite dev src/renderer",
Expand Down
Loading