From abd97d161724720774b40f548a050c81e7f920bb Mon Sep 17 00:00:00 2001 From: Chen Date: Thu, 25 Mar 2021 11:07:32 +0800 Subject: [PATCH] Migrate from TravisCI to Github Actions (#155) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Create maven.yml * Update maven.yml * Update README.md * Update README.md * Update README.md remove personal NickNYU * Update maven.yml Update README.md * split executor in session and data (#152) * default disable drop connections * lint * start check client version cron * don't use bolt-default-executor (#151) Update README.md Update README.md remove personal NickNYU Co-authored-by: dzdx Co-authored-by: 忘禅 --- .github/workflows/maven.yml | 28 ++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 000000000..73ca425dc --- /dev/null +++ b/.github/workflows/maven.yml @@ -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: Java CI with Maven + +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: mvn clean install -DskipTests -B -V + && sh ./tools/check_format.sh + && mvn clean test + - name: Codecov + uses: codecov/codecov-action@v1 diff --git a/README.md b/README.md index 1d3535c42..e589ab84e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # SOFARegistry -[![Build Status](https://travis-ci.com/alipay/sofa-registry.svg?branch=master)](https://travis-ci.com/sofastack/sofa-registry) +[![Java CI with Maven](https://github.com/sofastack/sofa-registry/actions/workflows/maven.yml/badge.svg)](https://github.com/sofastack/sofa-registry/actions/workflows/maven.yml) ![license](https://img.shields.io/badge/license-Apache--2.0-green.svg) [![Coverage Status](https://codecov.io/gh/alipay/sofa-registry/branch/master/graph/badge.svg)](https://codecov.io/gh/sofastack/sofa-registry) ![maven](https://img.shields.io/github/release/sofastack/sofa-registry.svg)