Skip to content

Commit

Permalink
Use github action instead of travis (sofastack#1015)
Browse files Browse the repository at this point in the history
* Use github action instead of travis (sofastack#1015)
  • Loading branch information
OrezzerO authored Jan 29, 2021
1 parent 9fecfd1 commit 4777bcc
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: ./mvnw clean install -Pci-install -B -U -e && sh ./tools/check_format.sh
- name: Test with Maven
run: ./mvnw package -Pci-test
- name: Codecov
uses: codecov/codecov-action@v1

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SOFARPC

[![Build Status](https://travis-ci.com/sofastack/sofa-rpc.svg?branch=master)](https://travis-ci.com/sofastack/sofa-rpc)
![Build Status](https://github.com/sofastack/sofa-rpc/workflows/build/badge.svg)
[![Coverage Status](https://codecov.io/gh/sofastack/sofa-rpc/branch/master/graph/badge.svg)](https://codecov.io/gh/sofastack/sofa-rpc)
![License](https://img.shields.io/badge/license-Apache--2.0-green.svg)
[![Maven](https://img.shields.io/github/release/sofastack/sofa-rpc.svg)](https://github.com/sofastack/sofa-rpc/releases)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

<properties>
<!-- Build args -->
<revision>gi5.7.7-SNAPSHOT</revision>
<revision>5.7.7-SNAPSHOT</revision>
<module.install.skip>true</module.install.skip>
<module.deploy.skip>true</module.deploy.skip>
<maven.javadoc.skip>true</maven.javadoc.skip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ public class MultiProtocolServerExpTest extends ActivelyDestroyTest {

@Test
public void testMultiProtocolExp() throws NoSuchFieldException {
try {
Field field = DefaultProviderBootstrap.class.getDeclaredField("EXPORTED_KEYS");
Map map = null;
field.setAccessible(true);
map = (ConcurrentMap<String, AtomicInteger>) field.get(null);
map.clear();
} catch (IllegalAccessException e1) {
e1.printStackTrace();
}

try {
// 只有2个线程 执行
ServerConfig serverConfig = new ServerConfig()
Expand Down

0 comments on commit 4777bcc

Please sign in to comment.