diff --git a/.github/workflows/changelog-check.yml b/.github/workflows/changelog-check.yml deleted file mode 100644 index 717188a3..00000000 --- a/.github/workflows/changelog-check.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Changelog in sync for packages - -on: - push: - branches: - - master - pull_request: -jobs: - test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Setup Node.js 14.x - uses: actions/setup-node@v1 - with: - node-version: 14.x - - name: Install and run changelog check - run: - if [[ $GITHUB_HEAD_REF =~ dependabot || $GITHUB_HEAD_REF == "l10n_master" ]]; then - echo "Skipping running changelog check"; - else - npm ci; - npm run changelog:check; - fi - env: - CI: true diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index f01b4ab7..00000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: "CodeQL" - -on: - push: - branches: [master] - pull_request: - branches: [master] - schedule: - - cron: "18 7 * * 0" - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - language: ["typescript"] - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - - name: Autobuild - uses: github/codeql-action/autobuild@v1 - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 diff --git a/package.json b/package.json index 64f91af5..9fbc9e70 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,6 @@ "test:other": "npm run prettier -- --list-different", "test:typecheck": "tsc", "test:update": "npm run test:app -- --updateSnapshot --watchAll=false", - "test": "npm run test:app", - "changelog:check": "node ./scripts/changelog-check.js" + "test": "npm run test:app" } } diff --git a/scripts/changelog-check.js b/scripts/changelog-check.js deleted file mode 100644 index 46f53016..00000000 --- a/scripts/changelog-check.js +++ /dev/null @@ -1,34 +0,0 @@ -const { exec } = require("child_process"); - -const normalizePath = (path) => path.replace(/\\+/g, "/").trim().toLowerCase(); - -const IGNORED_PATHS = [ - "src/excalidraw-app", - "packages/utils", - "CHANGELOG.md", - "README.md", -].map(normalizePath); - -exec("git diff origin/master --cached --name-only", (error, stdout, stderr) => { - if (error || stderr) { - process.exit(1); - } - - if (!stdout || stdout.includes("packages/excalidraw/CHANGELOG.md")) { - process.exit(0); - } - - const changedFiles = stdout.trim().split("\n").map(normalizePath); - - const excalidrawPackageFiles = changedFiles.filter((filename) => { - return ( - filename.includes("src") && - !IGNORED_PATHS.find((ignoredPath) => filename.includes(ignoredPath)) - ); - }); - - if (excalidrawPackageFiles.length) { - process.exit(1); - } - process.exit(0); -});