diff --git a/.github/workflows/hone.yml b/.github/workflows/hone.yml new file mode 100644 index 0000000000..6342344810 --- /dev/null +++ b/.github/workflows/hone.yml @@ -0,0 +1,50 @@ +# The MIT License (MIT) +# +# Copyright (c) 2016-2024 Objectionary.com +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +--- +name: hone +on: + push: + branches: + - master + pull_request: + branches: + - master +concurrency: + group: hone-${{ github.ref }} + cancel-in-progress: true +jobs: + hone: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 21 + - uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + maven- + - run: mvn install -DskipTests -Dinvoker.skip -Phone + - run: mvn test -Phone -pl :eo-runtime diff --git a/eo-maven-plugin/src/main/java/org/eolang/maven/PhiMojo.java b/eo-maven-plugin/src/main/java/org/eolang/maven/PhiMojo.java index b0bdfa0460..c58bf7bb5c 100644 --- a/eo-maven-plugin/src/main/java/org/eolang/maven/PhiMojo.java +++ b/eo-maven-plugin/src/main/java/org/eolang/maven/PhiMojo.java @@ -256,7 +256,7 @@ private static String translated(final Xsline xsline, final XML xmir) final List phi = translated.xpath("program/phi/text()"); if (phi.isEmpty()) { throw new ImpossibleToPhiTranslationException( - "Xpath 'phi/text()' is not found in translated XMIR" + "Xpath 'phi/text()' is not found in the translated XMIR" ); } return phi.get(0); diff --git a/eo-runtime/pom.xml b/eo-runtime/pom.xml index 6ea0c6b582..fe02d2b85c 100644 --- a/eo-runtime/pom.xml +++ b/eo-runtime/pom.xml @@ -380,5 +380,32 @@ SOFTWARE. + + hone + + 0.0.22 + + + + + org.eolang + hone-maven-plugin + ${hone.version} + + + + pull + optimize + rmi + + + yegor256/hone:${hone.version} + + + + + + + diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOerror.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOerror.java index fabc4a3963..2be4ee6952 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOerror.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOerror.java @@ -106,7 +106,8 @@ private static String message(final Throwable exp) { ret.append(exp.getMessage().replace("%", "%%")); } if (exp.getCause() != null) { - ret.append("; caused by ").append(ErrorMsg.message(exp.getCause())); + ret.append("; caused by ") + .append(ErrorMsg.message(exp.getCause())); } return ret.toString(); }