File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : " CodeQL config"
22
33paths-ignore :
4- - ' deps/swc/crates/**/tests/**'
5- - ' deps/swc/bindings/**/tests/**'
6- - ' deps/swc/bindings/**/__tests__/**'
4+ - ' deps/**'
5+ - ' test/**'
6+ - ' **/*.test.js'
7+ - ' **/*.test.ts'
Original file line number Diff line number Diff line change 4545 uses : github/codeql-action/analyze@19b2f06db2b6f5108140aeb04014ef02b648f789 # v3.29.5
4646 with :
4747 category : " /language:${{matrix.language}}"
48+ upload-database : false
Original file line number Diff line number Diff line change @@ -71,24 +71,15 @@ mv crates "$DEPS_FOLDER/crates"
7171mv tools " $DEPS_FOLDER /tools"
7272
7373# Remove all unused folders (using -depth to process bottom-up)
74- find " $DEPS_FOLDER " -depth -type d -name " examples" -exec rm -rf {} + 2> /dev/null || true
7574find " $DEPS_FOLDER " -depth -type d -name " __tests__" -exec rm -rf {} + 2> /dev/null || true
7675find " $DEPS_FOLDER " -depth -type d -name " tests" -exec rm -rf {} + 2> /dev/null || true
77- find " $DEPS_FOLDER " -depth -type d -name " benches" -exec rm -rf {} + 2> /dev/null || true
7876find " $DEPS_FOLDER " -depth -type d -name " fixture" -exec rm -rf {} + 2> /dev/null || true
7977find " $DEPS_FOLDER " -depth -type d -name " fixtures" -exec rm -rf {} + 2> /dev/null || true
8078
8179# Remove test files
8280find " $DEPS_FOLDER " -type f -name " *test*.rs" -exec rm -f {} + 2> /dev/null || true
8381find " $DEPS_FOLDER " -type f -name " *spec*.rs" -exec rm -f {} + 2> /dev/null || true
8482
85- # Remove testing crates (not needed for builds)
86- rm -rf " $DEPS_FOLDER /crates/testing" 2> /dev/null || true
87- rm -rf " $DEPS_FOLDER /crates/testing_macros" 2> /dev/null || true
88- rm -rf " $DEPS_FOLDER /crates/swc_ecma_testing" 2> /dev/null || true
89- rm -rf " $DEPS_FOLDER /crates/swc_ecma_transforms_testing" 2> /dev/null || true
90- rm -rf " $DEPS_FOLDER /crates/swc_plugin_backend_tests" 2> /dev/null || true
91-
9283echo " All done!"
9384echo " "
9485echo " Please git add swc and commit the new version:"
You can’t perform that action at this time.
0 commit comments