Skip to content

Commit

Permalink
bug(#3696): skip UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Dec 19, 2024
1 parent 2809dc4 commit e362ff1
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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: integration
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
integration:
name: integration
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: ubuntu-surefire-jdk-21-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ubuntu-surefire-jdk-21-maven-
- run: |
mvn clean install -DskipUTs --errors --batch-mode
2 changes: 1 addition & 1 deletion .github/workflows/mvn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ jobs:
- uses: JesseTG/[email protected]
with:
path: ~/.m2/repository/org/eolang
- run: mvn clean install --errors --batch-mode
- run: mvn clean install -DskipITs --errors --batch-mode
4 changes: 4 additions & 0 deletions eo-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ SOFTWARE.
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipUTs}</skipTests>
<runOrder>random</runOrder>
<argLine>
@{argLine} -Xmx${heap-size} -Xss${stack-size} -Duser.language=ru -Duser.region=RU
Expand Down Expand Up @@ -281,6 +282,9 @@ SOFTWARE.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<skipTests>${skipITs}</skipTests>
</configuration>
<version>3.5.2</version>
<executions>
<execution>
Expand Down
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ SOFTWARE.
<sonar.organization>objectionary</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<antlr.version>4.13.2</antlr.version>
<!-- This is the flag that allows to skip unit tests run by maven-surefire-plugin -->
<skipUTs/>
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -401,6 +403,7 @@ SOFTWARE.
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>${skipUTs}</skipTests>
<systemPropertyVariables>
<basedir>${project.basedir}</basedir>
</systemPropertyVariables>
Expand Down

0 comments on commit e362ff1

Please sign in to comment.