diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml new file mode 100644 index 000000000..38f939d4b --- /dev/null +++ b/.github/workflows/eslint.yml @@ -0,0 +1,44 @@ +name: ESLint + +on: + push: + branches: ["master", "dev"] + pull_request: + branches: ["master", "dev"] + schedule: + - cron: '28 1 * * * 0' + +jobs: + eslint: + name: Run eslint scanning + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + actions: read + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install ESLint + run: | + pnpm install eslint@8.10.0 + pnpm install @microsoft/eslint-formatter-sarif@2.1.7 + + - name: Run ESLint + run: | + pnpx eslint . + --config .eslintrc.js + --ext .js,.jsx,.ts,.tsx + --format @microsoft/eslint-formatter-sarif + --output-file eslint-results.sarif + continue-on-error: true + + - name: Upload analysis results to GitHub + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: eslint-results.sarif + + - name: Wait for processing + run: echo "Waiting for analysis results to be processed..." diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 000000000..74efa66d6 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,33 @@ +name: Node.js CI + +on: + push: + branches: [master, dev] + pull_request: + branches: [master, dev] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x, 18.x] + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install + + - name: Build + run: pnpm build diff --git a/.gitignore b/.gitignore index 955e6d7e6..06b117d6e 100644 --- a/.gitignore +++ b/.gitignore @@ -104,3 +104,6 @@ dist # vscode private configuration file .vscode/redis.json + +# webstorm idea +.idea diff --git a/src/components/Application/src/AppDarkModeToggle.vue b/src/components/Application/src/AppDarkModeToggle.vue index 301655a4c..13c229958 100644 --- a/src/components/Application/src/AppDarkModeToggle.vue +++ b/src/components/Application/src/AppDarkModeToggle.vue @@ -32,7 +32,7 @@ }