-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from trydofor/develop
add qodana.yml; remove awesome,autogen module
- Loading branch information
Showing
134 changed files
with
216 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Qodana | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
qodana: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
checks: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: 'Qodana Scan' | ||
uses: JetBrains/[email protected] | ||
env: | ||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule docs
updated
4 files
+0 −4 | src/0-wings/README.md | |
+7 −7 | src/9-example/9a.wings-change/9a3.277-220.md | |
+0 −4 | src/zh/0-wings/README.md | |
+7 −7 | src/zh/9-example/9a.wings-change/9a3.277-220.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#!/bin/bash | ||
|
||
# check maven 3.5+ | ||
_ver_mvn=$(mvn --version | awk -F ' ' '/Apache Maven/ {print $3}') | ||
IFS='.' read -r -a ptv <<< "$_ver_mvn" | ||
if ((ptv[0] < 3)) || ((ptv[0] == 3 && ptv[1] < 9)); then | ||
echo -e "\033[31mREQUIRE maven 3.9+, but $_ver_mvn \033[0m" | ||
echo -e "asdf install maven 3.9.6[0m" | ||
exit | ||
fi | ||
|
||
# check java 21+ | ||
_ver_jdk=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}') | ||
IFS='.' read -r -a ptj <<< "$_ver_jdk" | ||
if ((ptj[0] < 21)); then | ||
echo -e "\033[31mREQUIRE java 21+, but $_ver_jdk \033[0m" | ||
echo "asdf install java temurin-21.0.1+12.0.LTS" | ||
exit | ||
fi | ||
|
||
if [[ "$MAVEN_OPTS" == "" ]]; then | ||
MAVEN_OPTS="-Xmx2g" | ||
fi | ||
|
||
if [[ "$LOG_LEVEL" == "" ]]; then | ||
echo -e "\033[32m log level (INFO)? [INFO|DEBUG|WARN|ERROR]\033[m" | ||
read -r _ans </dev/tty | ||
if [[ "$_ans" == "" ]] ;then | ||
LOG_LEVEL="INFO" | ||
else | ||
LOG_LEVEL="$_ans" | ||
fi | ||
fi | ||
|
||
if [[ "$TEST_VERBOSE" == "" ]]; then | ||
if [[ "$LOG_LEVEL" == "DEBUG" ]];then | ||
TEST_VERBOSE="true" | ||
else | ||
TEST_VERBOSE="false" | ||
fi | ||
fi | ||
|
||
if [[ "$COVERALLS_DRYRUN" == "" ]]; then | ||
echo -e "\033[32m dryrun coveralls (y)? [y|n]\033[m" | ||
read -r _ans </dev/tty | ||
if [[ "$_ans" == "" || "$_ans" == "y" ]]; then | ||
COVERALLS_DRYRUN="true" | ||
else | ||
COVERALLS_DRYRUN="false" | ||
fi | ||
fi | ||
|
||
this_file="$0" | ||
# shellcheck disable=SC2164,SC2046 | ||
cd $(dirname "$this_file") | ||
cd ../.. # to wings project dir | ||
|
||
echo -e "\033[32m from which step (1) to run?\033[m" | ||
echo "1 - clean install" | ||
echo "2 - devs-initdb" | ||
echo "3 - test" | ||
echo "4 - coverage" | ||
echo "5 - coverall report" | ||
read -r _ans </dev/tty | ||
_step=1; | ||
if [[ "$_ans" != "" ]]; then | ||
_step="$_ans" | ||
fi | ||
# ############## | ||
echo "=====================" | ||
pwd | ||
echo MAVEN_OPTS=$MAVEN_OPTS | ||
echo LOG_LEVEL=$LOG_LEVEL | ||
echo TEST_VERBOSE=$TEST_VERBOSE | ||
echo COVERALLS_DRYRUN=$COVERALLS_DRYRUN | ||
echo "FROM STEP $_step TO RUN" | ||
echo "=====================" | ||
set -e | ||
set -x | ||
[[ "$_step" -le "1" ]] && mvn -P '!example,!devs' -Dmaven.test.skip=true clean install | ||
[[ "$_step" -le "2" ]] && mvn -pl ':devs-codegen' -Ddevs-initdb=true clean test | ||
[[ "$_step" -le "3" ]] && mvn -P 'coverage,!example,!devs' test | ||
[[ "$_step" -le "4" ]] && mvn -pl ':devs-coverage' -am jacoco:report-aggregate | ||
[[ "$_step" -le "5" ]] && mvn -pl ':devs-coverage' -DrepoToken=$COVERALLS_WINGS -DdryRun=$COVERALLS_DRYRUN verify | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.