This is an automated email from the ASF dual-hosted git repository.

dineshc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 98a5bbc  HDDS-3822. Eliminate duplicated GitHub Actions workflow 
(#1090)
98a5bbc is described below

commit 98a5bbc5516568bd97ee4e4cdb0a594832a4cadc
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Mon Jun 22 05:23:10 2020 +0200

    HDDS-3822. Eliminate duplicated GitHub Actions workflow (#1090)
---
 .github/workflows/post-commit.yml |   3 +-
 .github/workflows/pr.yml          | 185 --------------------------------------
 2 files changed, 2 insertions(+), 186 deletions(-)

diff --git a/.github/workflows/post-commit.yml 
b/.github/workflows/post-commit.yml
index 0d53eeb..35636c2 100644
--- a/.github/workflows/post-commit.yml
+++ b/.github/workflows/post-commit.yml
@@ -14,6 +14,7 @@
 # limitations under the License.
 name: build-branch
 on:
+  pull_request:
   push:
   schedule:
     - cron: 30 0,12 * * *
@@ -176,7 +177,7 @@ jobs:
             path: target/artifacts
        - run: ./hadoop-ozone/dev-support/checks/coverage.sh
        - uses: ./.github/buildenv
-         if: github.repository == 'apache/hadoop-ozone'
+         if: github.repository == 'apache/hadoop-ozone' && github.event_name 
!= 'pull_request'
          with:
            args: ./hadoop-ozone/dev-support/checks/sonar.sh
          env:
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
deleted file mode 100644
index 2f73ea6..0000000
--- a/.github/workflows/pr.yml
+++ /dev/null
@@ -1,185 +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: pr-check
-on:
-  - pull_request
-jobs:
-  build:
-    name: compile
-    runs-on: ubuntu-18.04
-    steps:
-      - uses: actions/checkout@master
-      - uses: actions/cache@v2
-        with:
-          path: |
-            ~/.pnpm-store
-            **/node_modules
-          key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
-          restore-keys: |
-            ${{ runner.os }}-pnpm-
-      - uses: ./.github/buildenv
-        with:
-          args: ./hadoop-ozone/dev-support/checks/build.sh
-  rat:
-    name: rat
-    runs-on: ubuntu-18.04
-    steps:
-        - uses: actions/checkout@master
-        - uses: ./.github/buildenv
-          with:
-             args: ./hadoop-ozone/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
-        - uses: ./.github/buildenv
-          with:
-             args: ./hadoop-ozone/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
-        - uses: ./.github/buildenv
-          with:
-             args: ./hadoop-ozone/dev-support/checks/unit.sh
-        - 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
-        - uses: ./.github/buildenv
-          with:
-             args: ./hadoop-ozone/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
-        - uses: ./.github/buildenv
-          with:
-             args: ./hadoop-ozone/dev-support/checks/findbugs.sh
-        - uses: actions/upload-artifact@master
-          if: always()
-          with:
-            name: findbugs
-            path: target/findbugs
-  acceptance:
-    name: acceptance
-    runs-on: ubuntu-18.04
-    needs:
-      - build
-    steps:
-        - uses: actions/checkout@master
-        - uses: actions/cache@v2
-          with:
-            path: |
-              ~/.pnpm-store
-              **/node_modules
-            key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
-            restore-keys: |
-              ${{ runner.os }}-pnpm-
-        - uses: ./.github/buildenv
-          with:
-            args: ./hadoop-ozone/dev-support/checks/build.sh
-        # remove image created for 'buildenv'
-        - run: docker image rm $(docker images -a -q | head -1) || true
-        # remove its big parent build image
-        - run: docker image rm apache/ozone-build || true
-        - run: sudo pip install robotframework
-        - run: sudo mv ./hadoop-ozone/dist/target/ozone-* /mnt/ozone && sudo 
chown runner -R /mnt/ozone
-        - run: cd /mnt/ozone && mkdir .aws && sudo chown 1000 .aws
-        - run: cd /mnt/ozone/compose && ./test-all.sh
-          env:
-            KEEP_IMAGE: false
-        - uses: actions/upload-artifact@master
-          if: always()
-          with:
-            name: acceptance
-            path: /mnt/ozone/compose/result
-  integration:
-    name: integration
-    runs-on: ubuntu-18.04
-    needs:
-        - build
-    strategy:
-      matrix:
-        profile:
-          - client
-          - filesystem
-          - filesystem-contract
-          - freon
-          - hdds-om
-          - ozone
-      fail-fast: false
-    steps:
-        - run: sudo mkdir mnt && sudo mount --bind /mnt `pwd`/mnt && sudo 
chmod 777 mnt
-        - uses: actions/checkout@master
-          with:
-            path: mnt/ozone
-        - uses: ./mnt/ozone/.github/buildenv
-          with:
-             args: ./mnt/ozone/hadoop-ozone/dev-support/checks/integration.sh 
-P${{ matrix.profile }}
-        - uses: actions/upload-artifact@master
-          if: always()
-          with:
-            name: it-${{ matrix.profile }}
-            path: mnt/ozone/target/integration
-  coverage:
-    name: coverage
-    runs-on: ubuntu-18.04
-    needs:
-      - integration
-      - unit
-    steps:
-      - uses: actions/checkout@v2
-      - uses: ./.github/buildenv
-        with:
-          args: ./hadoop-ozone/dev-support/checks/build.sh
-      - uses: actions/download-artifact@v2
-        with:
-          path: target/artifacts
-      - run: ./hadoop-ozone/dev-support/checks/coverage.sh
-      - name: Upload coverage to Codecov
-        uses: codecov/codecov-action@v1
-        with:
-          file: ./target/coverage/all.xml
-          name: codecov-umbrella
-          fail_ci_if_error: true
-      - uses: actions/upload-artifact@master
-        with:
-          name: coverage
-          path: target/coverage


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to