Skip to content

Commit 0d19851

Browse files
mnoman09jaeopt
authored andcommitted
Fixing the git action build ubuntu to 18.04 (#473)
* test * test * test * adding travis yml to make sure everytest is working * test * test * commenting out gitaction build for now until github action resolves there issue * enabling only unit test for testing * test * test * test * test * test again * test * test * test * test * changed ubuntu version to 18.04 from latest * removing travis yml * reverted the changes * revert
1 parent 19e4d64 commit 0d19851

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
required: true
2121
jobs:
2222
run_build:
23-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-18.04
2424
steps:
2525
- uses: actions/checkout@v2
2626
- name: set up JDK 8

.github/workflows/java.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Java CI with Gradle
32

43
on:
@@ -46,7 +45,7 @@ jobs:
4645

4746
test:
4847
if: startsWith(github.ref, 'refs/tags/') != true
49-
runs-on: ubuntu-latest
48+
runs-on: ubuntu-18.04
5049
strategy:
5150
fail-fast: false
5251
matrix:
@@ -82,12 +81,12 @@ jobs:
8281
./gradlew exhaustiveTest
8382
./gradlew build
8483
- name: Check on failures
85-
if: steps.unit_tests.outcome != 'success'
84+
if: always() && steps.unit_tests.outcome != 'success'
8685
run: |
8786
cat /home/runner/java-sdk/core-api/build/reports/findbugs/main.html
8887
cat /home/runner/java-sdk/core-api/build/reports/findbugs/test.html
8988
- name: Check on success
90-
if: steps.unit_tests.outcome == 'success'
89+
if: always() && steps.unit_tests.outcome == 'success'
9190
run: |
9291
./gradlew coveralls uploadArchives --console plain
9392

core-api/src/test/java/com/optimizely/ab/config/DatafileProjectConfigTestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ private static void verifyExperiments(List<Experiment> actual, List<Experiment>
491491
assertThat(actualExperiment.getGroupId(), is(expectedExperiment.getGroupId()));
492492
assertThat(actualExperiment.getStatus(), is(expectedExperiment.getStatus()));
493493
assertThat(actualExperiment.getAudienceIds(), is(expectedExperiment.getAudienceIds()));
494-
assertThat(actualExperiment.getAudienceConditions(), is(expectedExperiment.getAudienceConditions()));
494+
assertEquals(actualExperiment.getAudienceConditions(), expectedExperiment.getAudienceConditions());
495495
assertThat(actualExperiment.getUserIdToVariationKeyMap(),
496496
is(expectedExperiment.getUserIdToVariationKeyMap()));
497497

core-api/src/test/java/com/optimizely/ab/config/parser/JacksonConfigParserTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public void parseProjectConfigV3() throws Exception {
6969
verifyProjectConfig(actual, expected);
7070
}
7171

72+
@SuppressFBWarnings("NP_NULL_PARAM_DEREF")
7273
@Test
7374
public void parseProjectConfigV4() throws Exception {
7475
JacksonConfigParser parser = new JacksonConfigParser();

0 commit comments

Comments
 (0)