chore: Remove changelog check and graphql (#2639)

This commit is contained in:
Lipis 2020-12-20 21:52:21 +02:00 committed by GitHub
parent b997e69ebc
commit 14759d5b72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 96 deletions

View File

@ -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

View File

@ -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

View File

@ -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"
}
}

View File

@ -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);
});