Skip to content

Commit

Permalink
Merge pull request #180 from vladimir-bukhtoyarov/try_github_actions
Browse files Browse the repository at this point in the history
Try GitHub actions
  • Loading branch information
vladimir-bukhtoyarov committed Oct 4, 2021
2 parents 95c99ac + 47d5592 commit fb75d9d
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 12 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
build:
strategy:
matrix:
# java: [ '8', '11' ]
java: [ '8' ]
os: [ 'ubuntu-latest' ]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
cache: 'maven'
- name: Build
run: mvn --no-transfer-progress -B clean package
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,19 @@ public class CoherenceWithJdkSerializationTest extends AbstractDistributedBucket

@BeforeClass
public static void prepareCache() throws InterruptedException {
memberGroup = ClusterMemberGroupUtils.newBuilder().setStorageEnabledCount(2)
.setCacheConfiguration("test-coherence-jdk_serialization-config.xml")
.buildAndConfigureForStorageDisabledClient();
if (System.getenv("CI") == null) {
memberGroup = ClusterMemberGroupUtils.newBuilder().setStorageEnabledCount(2)
.setCacheConfiguration("test-coherence-config.xml")
.buildAndConfigureForStorageDisabledClient();
} else {
// Use less nodes on Github Actions build environment in order to satisfy the 7Gb limit
// https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
// https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
memberGroup = ClusterMemberGroupUtils.newBuilder()
.setStorageEnabledCount(0)
.buildAndConfigureFor(ClusterMemberGroup.BuildAndConfigureEnum.STORAGE_ENABLED_MEMBER);
}

cache = CacheFactory.getCache("my_buckets");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,19 @@ public class CoherenceWithPofSerializationTest extends AbstractDistributedBucket

@BeforeClass
public static void prepareCache() throws InterruptedException {
memberGroup = ClusterMemberGroupUtils.newBuilder().setStorageEnabledCount(2)
.setCacheConfiguration("test-coherence-config.xml")
.buildAndConfigureForStorageDisabledClient();
if (System.getenv("CI") == null) {
memberGroup = ClusterMemberGroupUtils.newBuilder().setStorageEnabledCount(2)
.setCacheConfiguration("test-coherence-config.xml")
.buildAndConfigureForStorageDisabledClient();
} else {
// Use less nodes on Github Actions build environment in order to satisfy the 7Gb limit
// https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
// https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
memberGroup = ClusterMemberGroupUtils.newBuilder()
.setStorageEnabledCount(0)
.buildAndConfigureFor(ClusterMemberGroup.BuildAndConfigureEnum.STORAGE_ENABLED_MEMBER);
}

cache = CacheFactory.getCache("my_buckets");
}

Expand Down

0 comments on commit fb75d9d

Please sign in to comment.