From cd35e041e72f95ab0043b6f5e1f048fe27d64754 Mon Sep 17 00:00:00 2001 From: bling-yshs <377178599@qq.com> Date: Fri, 19 Apr 2024 21:36:36 +0800 Subject: [PATCH] test --- .github/codeql/codeql-config.yml | 5 -- .github/dependabot.yml | 26 ---------- .github/linters/.eslintrc.yml | 50 ------------------ .github/linters/.markdown-lint.yml | 18 ------- .github/linters/.yaml-lint.yml | 10 ---- .github/workflows/codeql-analysis.yml | 73 --------------------------- .github/workflows/linter.yml | 48 ------------------ .github/workflows/main.yml | 5 +- 8 files changed, 4 insertions(+), 231 deletions(-) delete mode 100644 .github/codeql/codeql-config.yml delete mode 100644 .github/dependabot.yml delete mode 100644 .github/linters/.eslintrc.yml delete mode 100644 .github/linters/.markdown-lint.yml delete mode 100644 .github/linters/.yaml-lint.yml delete mode 100644 .github/workflows/codeql-analysis.yml delete mode 100644 .github/workflows/linter.yml diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml deleted file mode 100644 index ffb47fa..0000000 --- a/.github/codeql/codeql-config.yml +++ /dev/null @@ -1,5 +0,0 @@ -name: JavaScript CodeQL Configuration - -paths-ignore: - - node_modules - - dist diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 742ec57..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,26 +0,0 @@ -version: 2 -updates: - - package-ecosystem: github-actions - directory: / - schedule: - interval: weekly - groups: - actions-minor: - update-types: - - minor - - patch - - - package-ecosystem: npm - directory: / - schedule: - interval: weekly - groups: - npm-development: - dependency-type: development - update-types: - - minor - - patch - npm-production: - dependency-type: production - update-types: - - patch diff --git a/.github/linters/.eslintrc.yml b/.github/linters/.eslintrc.yml deleted file mode 100644 index b92a4c3..0000000 --- a/.github/linters/.eslintrc.yml +++ /dev/null @@ -1,50 +0,0 @@ -env: - commonjs: true - es6: true - jest: true - node: true - -globals: - Atomics: readonly - SharedArrayBuffer: readonly - -ignorePatterns: - - '!.*' - - '**/node_modules/.*' - - '**/dist/.*' - - '**/coverage/.*' - - '*.json' - -parser: '@babel/eslint-parser' - -parserOptions: - ecmaVersion: 2023 - sourceType: module - requireConfigFile: false - babelOptions: - babelrc: false - configFile: false - presets: - - jest - -plugins: - - jest - -extends: - - eslint:recommended - - plugin:github/recommended - - plugin:jest/recommended - -rules: - { - 'camelcase': 'off', - 'eslint-comments/no-use': 'off', - 'eslint-comments/no-unused-disable': 'off', - 'i18n-text/no-en': 'off', - 'import/no-commonjs': 'off', - 'import/no-namespace': 'off', - 'no-console': 'off', - 'no-unused-vars': 'off', - 'prettier/prettier': 'error', - 'semi': 'off' - } diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml deleted file mode 100644 index cb5883f..0000000 --- a/.github/linters/.markdown-lint.yml +++ /dev/null @@ -1,18 +0,0 @@ -# Unordered list style -MD004: - style: dash - -# Ordered list item prefix -MD029: - style: one - -# Spaces after list markers -MD030: - ul_single: 1 - ol_single: 1 - ul_multi: 1 - ol_multi: 1 - -# Code block style -MD046: - style: fenced diff --git a/.github/linters/.yaml-lint.yml b/.github/linters/.yaml-lint.yml deleted file mode 100644 index c975a33..0000000 --- a/.github/linters/.yaml-lint.yml +++ /dev/null @@ -1,10 +0,0 @@ -rules: - document-end: disable - document-start: - level: warning - present: false - line-length: - level: warning - max: 80 - allow-non-breakable-words: true - allow-non-breakable-inline-mappings: true diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index 4823e32..0000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,73 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: CodeQL - -on: - push: - branches: - - main - pull_request: - branches: - - main - schedule: - - cron: '24 5 * * 6' - -permissions: - actions: read - contents: read - security-events: write - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - language: ['javascript'] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Learn more about CodeQL language support at https://git.io/codeql-language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: ${{ matrix.language }} - config-file: ./.github/codeql/codeql-config.yml - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml deleted file mode 100644 index 0afc677..0000000 --- a/.github/workflows/linter.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Lint Codebase - -on: - pull_request: - branches: - - main - push: - branches: - - main - -permissions: - contents: read - packages: read - statuses: write - -jobs: - lint: - name: Lint Codebase - runs-on: ubuntu-latest - - steps: - - name: Checkout - id: checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup Node.js - id: setup-node - uses: actions/setup-node@v4 - with: - node-version-file: .node-version - cache: npm - - - name: Install Dependencies - id: install - run: npm ci - - - name: Lint Codebase - id: super-linter - uses: super-linter/super-linter/slim@v6 - env: - DEFAULT_BRANCH: main - FILTER_REGEX_EXCLUDE: dist/**/* - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - JAVASCRIPT_DEFAULT_STYLE: prettier - VALIDATE_ALL_CODEBASE: true - VALIDATE_JSCPD: false diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 19f776a..01d75b2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,8 @@ name: test action -on: [push] +on: + push: + branches: + - main jobs: hello_world_job: