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

issue 949 fix #1013

Merged
merged 6 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
58 changes: 58 additions & 0 deletions .github/workflows/desktop.codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: desktop CodeQL
on:
push:
branches:
- the-one
paths:
- 'desktop/**.ts'
- 'desktop/**.tsx'
- 'desktop/**.js'
- 'desktop/**.cjs'
- 'desktop/package-lock.json'
- '.github/workflows/desktop.codeql.yml'
pull_request:
branches:
- the-one
paths:
- 'desktop/**.ts'
- 'desktop/**.tsx'
- 'desktop/**.js'
- 'desktop/**.cjs'
- 'desktop/package-lock.json'
- '.github/workflows/desktop.codeql.yml'
env:
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript-typescript
queries: security-and-quality
source-root: desktop
- name: Setup Node.js environment ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: cd desktop && npm ci
- run: cd desktop && npm run language
- name: Perform CodeQL Analysis
uses: github/codeql-actions/analyze@v3
with:
category: "/language:javascript-typescript"
47 changes: 47 additions & 0 deletions .github/workflows/desktop.eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: desktop ESLINT
on:
push:
branches:
- the-one
paths:
- "desktope/**.ts"
- "desktope/**.tsx"
- "desktope/**.js"
- "desktope/**.cjs"
- "desktope/**.json"
- "desktope/**.svelte"
aceppaluni marked this conversation as resolved.
Show resolved Hide resolved
- ".github/workflows/desktope.eslint.yml"
pull_request:
branches:
- the-one
paths:
- "desktope/**.ts"
- "desktope/**.tsx"
- "desktope/**.js"
- "desktope/**.cjs"
- "desktope/**.json"
- "desktope/**.svelte"
- ".github/workflows/desktope.eslint.yml"
env:
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/[email protected]
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: "npm"
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: npm ci
- run: cd desktop && npm ci
- run: cd desktop && npm run language
- run: cd desktop && npm run lint
46 changes: 46 additions & 0 deletions .github/workflows/desktop.fta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: desktop FTA
on:
push:
branches:
- the-one
paths:
- 'desktop/**.ts'
- 'desktop/**.tsx'
- 'desktop/**.js'
- 'desktop/**.cjs'
- 'desktop/**.json'
- 'desktop/**.svelte'
- '.github/workflows/desktop.fta.yml'
pull_request:
branches:
- the-one
paths:
- 'desktop/**.ts'
- 'desktop/**.tsx'
- 'desktop/**.js'
- 'desktop/**.cjs'
- 'desktop/**.json'
- 'desktop/**.svelte'
- '.github/workflows/desktop.fta.yml'
env:
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
Idrinth marked this conversation as resolved.
Show resolved Hide resolved
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: npm ci
- run: cd desktop && npm ci && npm run language
- run: npm run fta -- desktop || true
47 changes: 47 additions & 0 deletions .github/workflows/desktop.knip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: desktop Knip
on:
push:
branches:
- the-one
paths:
- 'desktop/**.ts'
- 'desktop/**.tsx'
- 'desktop/**.js'
- 'desktop/**.cjs'
- 'desktop/**.json'
- 'desktop/**.svelte'
- '.github/workflows/desktop.knip.yml'
pull_request:
branches:
- the-one
paths:
- 'desktop/**.ts'
- 'desktop/**.tsx'
- 'desktop/**.js'
- 'desktop/**.cjs'
- 'desktop/**.json'
- 'desktop/**.svelte'
- '.github/workflows/desktop.knip.yml'
env:
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
documentation-website/package-lock.json
package-lock.json
- run: npm ci
- run: cd desktop && npm ci
- run: cd desktop && npm run language
- run: cd desktop && npm run Knip
35 changes: 35 additions & 0 deletions .github/workflows/desktop.language.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: desktop language lint
on:
push:
branches:
- the-one
paths:
- 'desktop/language/*.yml'
- '.github/workflows/desktop.language-lint.yml'
pull_request:
branches:
- the-one
paths:
- 'desktop/language/*.yml'
- '.github/workflows/desktop.language-lint.yml'
env:
CURRENT_NODE_VERSION: ${{ env.CURRENT_NODE_VERSION || 'latest' }
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: npm ci
- run: npm run check-language -- desktop
35 changes: 35 additions & 0 deletions .github/workflows/desktop.license-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: desktop license lint
on:
push:
branches:
- the-one
paths:
- 'desktop/package-lock.json'
- '.github/workflows/desktop.license-check.yml'
pull_request:
branches:
- the-one
paths:
- 'desktop/package-lock.json'
- '.github/workflows/documentation-website.license-check.yml'
Idrinth marked this conversation as resolved.
Show resolved Hide resolved
env:
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/checkout@v4
Idrinth marked this conversation as resolved.
Show resolved Hide resolved
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
documentation-website/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
documentation-website/package-lock.json
package-lock.json
- run: cd desktop && npm ci
- run: cd desktop && npm license-checker -- -production --onlyAllow="MIT;ISC;Apache-2.0;BSD-2-Clause;BSD-3-Clause;Python-2.0;LGPL-2.1;GPL-2.0;BlueOak-1.0.0;CC0-1.0;0BSD;WTFPL;Unlicense"
37 changes: 37 additions & 0 deletions .github/workflows/desktop.mdlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
nanme: desktop MARKDOWN-LINT
on:
push:
branches:
- the-one
paths:
- 'desktop/*.md'
- 'desktop/package-lock.json'
- '.github/workflows/desktop.mdlint.yml'
pull_request:
branches:
- the-one
paths:
- 'desktop/*.md'
- 'desktop/package-lock.json'
- '.github/workflows/desktop.mdlint.yml'
env:
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/checkout@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: cd desktop && npm ci
- run: cd desktop && npm run lint-md
37 changes: 37 additions & 0 deletions .github/workflows/desktop.spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: desktop spellcheck
on:
push:
branches:
- the-one
paths:
- 'desktop/language/en.yml'
- '.github/workflows/desktop.spellcheck.yml'
- '.dictionary.txt'
pull_request:
branches:
- the-one
paths:
- 'desktop/language/en.yml'
- '.github/workflows/desktop.spellcheck.yml'
- '.dictionary.txt'
env:
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
documentation-website/package-lock.json
package-lock.json
- run: cd desktop && npm ci
- run: cd desktop && npm run spellcheck
Loading
Loading