This is an automated email from the ASF dual-hosted git repository.
runzhiwang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ratis.git
The following commit(s) were added to refs/heads/master by this push:
new 9d1b711 RATIS-1306. Eliminate duplicated GitHub Actions workflow
(#415)
9d1b711 is described below
commit 9d1b711f9d4606145e19a28270b0c50b04dc869b
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Fri Feb 5 00:44:43 2021 +0100
RATIS-1306. Eliminate duplicated GitHub Actions workflow (#415)
---
.github/workflows/post-commit.yml | 6 ++-
.github/workflows/pr.yml | 92 ---------------------------------------
2 files changed, 5 insertions(+), 93 deletions(-)
diff --git a/.github/workflows/post-commit.yml
b/.github/workflows/post-commit.yml
index fc1c70b..e9fbf79 100644
--- a/.github/workflows/post-commit.yml
+++ b/.github/workflows/post-commit.yml
@@ -15,6 +15,7 @@
name: build-branch
on:
- push
+ - pull_request
jobs:
build:
name: compile
@@ -60,11 +61,14 @@ jobs:
steps:
- uses: actions/checkout@master
- run: ./dev-support/checks/sonar.sh
- if: github.repository == 'apache/incubator-ratis'
+ if: github.repository == 'apache/incubator-ratis' &&
github.event_name != 'pull_request'
env:
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: ./dev-support/checks/unit.sh
+ - name: Summary of failures
+ run: cat target/${{ github.job }}/summary.txt
+ if: always()
- uses: actions/upload-artifact@master
if: always()
with:
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
deleted file mode 100644
index e259bda..0000000
--- a/.github/workflows/pr.yml
+++ /dev/null
@@ -1,92 +0,0 @@
-# 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: build-branch
-on:
- - pull_request
-jobs:
- build:
- name: compile
- runs-on: ubuntu-18.04
- strategy:
- matrix:
- java: [ 8, 11 ]
- fail-fast: false
- steps:
- - name: Checkout project
- uses: actions/checkout@v2
- - name: Setup java
- uses: actions/setup-java@v1
- with:
- java-version: ${{ matrix.java }}
- - name: Run a full build
- run: ./dev-support/checks/build.sh
- rat:
- name: rat
- runs-on: ubuntu-18.04
- steps:
- - uses: actions/checkout@master
- - run: ./dev-support/checks/rat.sh
- - uses: actions/upload-artifact@master
- if: always()
- with:
- name: rat
- path: target/rat
- author:
- name: author
- runs-on: ubuntu-18.04
- steps:
- - uses: actions/checkout@master
- - run: ./dev-support/checks/author.sh
- - uses: actions/upload-artifact@master
- if: always()
- with:
- name: author
- path: target/author
- unit:
- name: unit
- runs-on: ubuntu-18.04
- steps:
- - uses: actions/checkout@master
- - run: ./dev-support/checks/unit.sh
- - name: Summary of failures
- run: cat target/${{ github.job }}/summary.txt
- if: always()
- - uses: actions/upload-artifact@master
- if: always()
- with:
- name: unit
- path: target/unit
- checkstyle:
- name: checkstyle
- runs-on: ubuntu-18.04
- steps:
- - uses: actions/checkout@master
- - run: ./dev-support/checks/checkstyle.sh
- - uses: actions/upload-artifact@master
- if: always()
- with:
- name: checkstyle
- path: target/checkstyle
- findbugs:
- name: findbugs
- runs-on: ubuntu-18.04
- steps:
- - uses: actions/checkout@master
- - run: ./dev-support/checks/findbugs.sh
- - uses: actions/upload-artifact@master
- if: always()
- with:
- name: findbugs
- path: target/findbugs