Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

chore: update ci from travis to github-action #163

Merged
merged 20 commits into from
Jul 27, 2021
Merged
53 changes: 53 additions & 0 deletions .github/workflows/ci-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

name: CI - Test
on:
pull_request:
branches:
- master
- 'v[0-9]+.*' # release branch
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
test:
name: test
runs-on: ubuntu-latest
foreverneverer marked this conversation as resolved.
Show resolved Hide resolved
strategy:
matrix:
java: [ '8', '11']
steps:
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: lint
run: ./scripts/format-all.sh
foreverneverer marked this conversation as resolved.
Show resolved Hide resolved
- name: ci
run: ./scripts/ci-test.sh
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public void testDNSMetaUnavailable() {
.build());
MetaSession metaMock = Mockito.spy(manager.getMetaSession());
List<ReplicaSession> metaList = metaMock.getMetaList();
metaList.remove(0); // del the "localhost:34601"
metaList.clear(); // del the "localhost:34601"
foreverneverer marked this conversation as resolved.
Show resolved Hide resolved
metaList.add(manager.getReplicaSession(rpc_address.fromIpPort("172.0.0.1:34602")));
metaList.add(manager.getReplicaSession(rpc_address.fromIpPort("172.0.0.1:34603")));
metaList.add(manager.getReplicaSession(rpc_address.fromIpPort("172.0.0.1:34601")));
Expand Down