Skip to content

Fixing the git action build ubuntu to 18.04 #473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
required: true
jobs:
run_build:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: set up JDK 8
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Java CI with Gradle

on:
Expand Down Expand Up @@ -46,7 +45,7 @@ jobs:

test:
if: startsWith(github.ref, 'refs/tags/') != true
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -82,12 +81,12 @@ jobs:
./gradlew exhaustiveTest
./gradlew build
- name: Check on failures
if: steps.unit_tests.outcome != 'success'
if: always() && steps.unit_tests.outcome != 'success'
run: |
cat /home/runner/java-sdk/core-api/build/reports/findbugs/main.html
cat /home/runner/java-sdk/core-api/build/reports/findbugs/test.html
- name: Check on success
if: steps.unit_tests.outcome == 'success'
if: always() && steps.unit_tests.outcome == 'success'
run: |
./gradlew coveralls uploadArchives --console plain

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ private static void verifyExperiments(List<Experiment> actual, List<Experiment>
assertThat(actualExperiment.getGroupId(), is(expectedExperiment.getGroupId()));
assertThat(actualExperiment.getStatus(), is(expectedExperiment.getStatus()));
assertThat(actualExperiment.getAudienceIds(), is(expectedExperiment.getAudienceIds()));
assertThat(actualExperiment.getAudienceConditions(), is(expectedExperiment.getAudienceConditions()));
assertEquals(actualExperiment.getAudienceConditions(), expectedExperiment.getAudienceConditions());
assertThat(actualExperiment.getUserIdToVariationKeyMap(),
is(expectedExperiment.getUserIdToVariationKeyMap()));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public void parseProjectConfigV3() throws Exception {
verifyProjectConfig(actual, expected);
}

@SuppressFBWarnings("NP_NULL_PARAM_DEREF")
@Test
public void parseProjectConfigV4() throws Exception {
JacksonConfigParser parser = new JacksonConfigParser();
Expand Down