File tree Expand file tree Collapse file tree 6 files changed +73
-4
lines changed
app/src/test/java/com/alphawallet/app Expand file tree Collapse file tree 6 files changed +73
-4
lines changed Original file line number Diff line number Diff line change 4
4
jobs :
5
5
lint :
6
6
name : Run CheckStyle
7
- runs-on : macos-latest
7
+ runs-on : ${{ matrix.os }}
8
+ strategy :
9
+ matrix :
10
+ os : [ubuntu-latest, windows-latest, macos-latest]
8
11
steps :
9
12
- uses : actions/checkout@v3
10
13
with :
Original file line number Diff line number Diff line change
1
+ name : Unit test(Ubuntu)
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ jobs :
8
+ test :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v3
12
+
13
+ - name : Set up JDK
14
+ uses : actions/setup-java@v3
15
+ with :
16
+ distribution : zulu
17
+ java-version : 11
18
+
19
+ - name : Run unit tests
20
+ run : sh ./build.sh
21
+
22
+ - name : Upload Test Reports Folder
23
+ uses : actions/upload-artifact@v2
24
+ if : ${{ always() }} # IMPORTANT: Upload reports regardless of status
25
+ with :
26
+ name : ut-reports
27
+ path : app/build/reports/tests
28
+
29
+ - name : Upload coverage reports to Codecov
30
+ run : |
31
+ curl -Os https://uploader.codecov.io/latest/linux/codecov
32
+ chmod +x codecov
33
+ ./codecov
Original file line number Diff line number Diff line change
1
+ name : Unit test(Windows)
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ jobs :
8
+ test :
9
+ runs-on : windows-latest
10
+ steps :
11
+ - uses : actions/checkout@v3
12
+
13
+ - name : Set up JDK
14
+ uses : actions/setup-java@v3
15
+ with :
16
+ distribution : zulu
17
+ java-version : 11
18
+
19
+ - name : Run unit tests
20
+ run : sh ./build.sh
21
+
22
+ - name : Upload Test Reports Folder
23
+ uses : actions/upload-artifact@v2
24
+ if : ${{ always() }} # IMPORTANT: Upload reports regardless of status
25
+ with :
26
+ name : ut-reports
27
+ path : app/build/reports/tests
28
+
29
+ - name : Upload coverage reports to Codecov
30
+ run : |
31
+ curl -Os https://uploader.codecov.io/latest/windows/codecov
32
+ chmod +x codecov
33
+ ./codecov
Original file line number Diff line number Diff line change 1
- name : Unit test
1
+ name : Unit test(MacOS)
2
2
on :
3
3
push :
4
4
branches :
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public void testBuildFunctionCallText() throws IOException
94
94
default:
95
95
break;
96
96
}
97
- stringBuilder.append(transactionInput.buildFunctionCallText()).append("\n" );
97
+ stringBuilder.append(transactionInput.buildFunctionCallText()).append(System.lineSeparator() );
98
98
}
99
99
}
100
100
assertThat(stringBuilder.toString(), equalTo(getBaseline()));
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ buildscript {
25
25
}
26
26
27
27
allprojects {
28
- // apply from: rootProject.file("codestyle.gradle")
28
+ apply from : rootProject. file(" codestyle.gradle" )
29
29
30
30
repositories {
31
31
google()
You can’t perform that action at this time.
0 commit comments