Skip to content

Commit 66b8fd6

Browse files
committed
make test work
1 parent 318f840 commit 66b8fd6

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,19 @@ jobs:
4242
# Prefix the list here with "+" to use these queries and those in the config file.
4343
# queries: ./path/to/local/query, your-org/your-repo/queries@main
4444

45+
- name: Set up JDK 8
46+
uses: actions/setup-java@v2
47+
with:
48+
java-version: 8
49+
distribution: 'adopt'
50+
cache: maven
51+
4552
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4653
# If this step fails, then you should remove it and run the build manually (see below)
47-
- name: Autobuild
48-
uses: github/codeql-action/autobuild@v1
49-
50-
# ℹ️ Command-line programs to run using the OS shell.
51-
# 📚 https://git.io/JvXDl
52-
53-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
54-
# and modify them (or add more) to build your code if your project
55-
# uses a compiled language
56-
57-
#- run: |
58-
# make bootstrap
59-
# make release
54+
- name: Build
55+
run: |
56+
mkdir tmp
57+
mvn -B package --file pom.xml -DskipTest
6058
6159
- name: Perform CodeQL Analysis
6260
uses: github/codeql-action/analyze@v1

.github/workflows/maven.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@ jobs:
2424
cache: maven
2525

2626
- name: Build with Maven
27-
run: mvn -B package --file pom.xml
27+
run: |
28+
mkdir tmp
29+
mvn -B package --file pom.xml

fs/src/test/java/org/jnode/test/fs/jfat/FatFileSystemTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ public class FatFileSystemTest {
5555

5656
@BeforeEach
5757
void before() throws IOException {
58-
PropsEntity.Util.bind(this);
58+
if (localPropertiesExists()) {
59+
PropsEntity.Util.bind(this);
60+
}
5961
}
6062

6163
static boolean localPropertiesExists() {

0 commit comments

Comments
 (0)