Skip to content

Commit

Permalink
change 5 disable windows and skip ubuntu tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ShammiL committed Aug 14, 2024
1 parent d894e77 commit 452a8e6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/all-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,30 @@ name: All Tests ( openjdk8 )
on: [push]

jobs:
# Ubuntu:
Ubuntu:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: joschi/setup-jdk@v2
with:
distribution: 'adopt'
java-version: 11
- name: Set JAVA_TOOL_OPTIONS
run: |
NEW_JAVA_TOOL_OPTIONS="${{ env.JAVA_TOOL_OPTIONS }} -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED"
echo "JAVA_TOOL_OPTIONS=$NEW_JAVA_TOOL_OPTIONS" >> $GITHUB_ENV
- name: Build with Maven
run: |
mvn -B clean install --file pom.xml -fae '-Dtest=!ODataETagTestCase#validateETagConcurrentHandlingTestCaseForDeleteMethod+validateETagConcurrentHandlingTestCaseForUpdatePropertyWithPutMethod+validateETagConcurrentHandlingTestCaseForUpdatePropertyWithPatchMethod'
env:
JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }}

# MacOS:
#
# runs-on: ubuntu-latest
# runs-on: macOS-latest
#
# steps:
# - uses: actions/checkout@v2
Expand All @@ -24,11 +45,14 @@ jobs:
# env:
# JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }}
#
# MacOS:

# windows:
#
# runs-on: macOS-latest
# runs-on: windows-latest
#
# steps:
# - name: Support longpaths
# run: git config --system core.longpaths true
# - uses: actions/checkout@v2
# - name: Set up JDK 11
# uses: joschi/setup-jdk@v2
Expand All @@ -37,33 +61,9 @@ jobs:
# java-version: 11
# - name: Set JAVA_TOOL_OPTIONS
# run: |
# NEW_JAVA_TOOL_OPTIONS="${{ env.JAVA_TOOL_OPTIONS }} -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED"
# echo "JAVA_TOOL_OPTIONS=$NEW_JAVA_TOOL_OPTIONS" >> $GITHUB_ENV
# $NEW_JAVA_TOOL_OPTIONS="${{ env.JAVA_TOOL_OPTIONS }} -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED"
# echo "JAVA_TOOL_OPTIONS=$NEW_JAVA_TOOL_OPTIONS" >> $env:GITHUB_ENV
# - name: Build with Maven
# run: |
# mvn -B clean install --file pom.xml -fae
# run: mvn -B clean install --file pom.xml -fae
# env:
# JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }}
#

windows:

runs-on: windows-latest

steps:
- name: Support longpaths
run: git config --system core.longpaths true
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: joschi/setup-jdk@v2
with:
distribution: 'adopt'
java-version: 11
- name: Set JAVA_TOOL_OPTIONS
run: |
$NEW_JAVA_TOOL_OPTIONS="${{ env.JAVA_TOOL_OPTIONS }} -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true --add-opens=java.base/java.net=ALL-UNNAMED"
echo "JAVA_TOOL_OPTIONS=$NEW_JAVA_TOOL_OPTIONS" >> $env:GITHUB_ENV
- name: Build with Maven
run: mvn -B clean install --file pom.xml -fae
env:
JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<inherited>false</inherited>
<version>2.12.4</version>
<version>2.22.2</version>
<configuration>
<!--<argLine>-Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5006</argLine>-->
<argLine>-Xmx1024m</argLine>
Expand Down

0 comments on commit 452a8e6

Please sign in to comment.