Skip to content

Commit

Permalink
chore: Update to Java 17 in CI (#1434)
Browse files Browse the repository at this point in the history
Signed-off-by: sheche <sheche@microsoft.com>
  • Loading branch information
jdneo authored Jun 8, 2022
1 parent 9ef656a commit c6905b1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
sudo /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
sleep 3
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '17'

- name: Setup Node.js environment
uses: actions/setup-node@v2
Expand Down Expand Up @@ -57,10 +57,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '17'

- name: Setup Node.js environment
uses: actions/setup-node@v2
Expand Down Expand Up @@ -93,10 +93,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '11'
java-version: '17'

- name: Setup Node.js environment
uses: actions/setup-node@v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
Expand All @@ -56,7 +57,8 @@ public class JUnitLaunchConfigurationDelegate extends org.eclipse.jdt.junit.laun

private Argument args;

private static final Set<String> testNameArgs = Set.of("-test", "-classNames", "-packageNameFile", "-testNameFile");
private static final Set<String> testNameArgs = new HashSet<>(
Arrays.asList("-test", "-classNames", "-packageNameFile", "-testNameFile"));

public JUnitLaunchConfigurationDelegate(Argument args) {
super();
Expand Down
2 changes: 1 addition & 1 deletion java-extension/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<properties>
<base.name>Test Runner for Java</base.name>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<tycho-version>1.7.0</tycho-version>
<tycho-version>2.7.2</tycho-version>
</properties>
<modules>
<module>build-tools</module>
Expand Down

0 comments on commit c6905b1

Please sign in to comment.