| # 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: ./.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 |
| steps: |
| - uses: actions/checkout@master |
| - uses: ./.github/buildenv |
| with: |
| args: ./hadoop-ozone/dev-support/checks/build.sh |
| - run: sudo pip install robotframework |
| - run: sudo chown runner -R . |
| - run: cd ./hadoop-ozone/dist/target/ozone-*/ && mkdir .aws && sudo chown 1000 .aws |
| - run: ./hadoop-ozone/dev-support/checks/acceptance.sh |
| - uses: actions/upload-artifact@master |
| if: always() |
| with: |
| name: acceptance |
| path: target/acceptance |
| it-freon: |
| name: it-freon |
| runs-on: ubuntu-18.04 |
| needs: |
| - build |
| steps: |
| - uses: actions/checkout@master |
| - uses: ./.github/buildenv |
| with: |
| args: ./hadoop-ozone/dev-support/checks/integration.sh -Pfreon |
| - uses: actions/upload-artifact@master |
| if: always() |
| with: |
| name: it-freon |
| path: target/integration |
| it-filesystem: |
| name: it-filesystem |
| runs-on: ubuntu-18.04 |
| needs: |
| - build |
| steps: |
| - uses: actions/checkout@master |
| - uses: ./.github/buildenv |
| with: |
| args: ./hadoop-ozone/dev-support/checks/integration.sh -Pfilesystem |
| - uses: actions/upload-artifact@master |
| if: always() |
| with: |
| name: it-filesystem |
| path: target/integration |
| it-filesystem-contract: |
| name: it-filesystem-contract |
| runs-on: ubuntu-18.04 |
| needs: |
| - build |
| steps: |
| - uses: actions/checkout@master |
| - uses: ./.github/buildenv |
| with: |
| args: ./hadoop-ozone/dev-support/checks/integration.sh -Pfilesystem-contract |
| - uses: actions/upload-artifact@master |
| if: always() |
| with: |
| name: it-filesystem-contract |
| path: target/integration |
| it-client-and-hdds: |
| name: it-client-and-hdds |
| runs-on: ubuntu-18.04 |
| needs: |
| - build |
| steps: |
| - uses: actions/checkout@master |
| - uses: ./.github/buildenv |
| with: |
| args: ./hadoop-ozone/dev-support/checks/integration.sh -Pclient-and-hdds |
| - uses: actions/upload-artifact@master |
| if: always() |
| with: |
| name: it-client-and-hdds |
| path: target/integration |
| it-om: |
| name: it-om |
| runs-on: ubuntu-18.04 |
| needs: |
| - build |
| steps: |
| - uses: actions/checkout@master |
| - uses: ./.github/buildenv |
| with: |
| args: ./hadoop-ozone/dev-support/checks/integration.sh -Pom |
| - uses: actions/upload-artifact@master |
| if: always() |
| with: |
| name: it-om |
| path: target/integration |
| it-ozone: |
| name: it-ozone |
| runs-on: ubuntu-18.04 |
| needs: |
| - build |
| steps: |
| - uses: actions/checkout@master |
| - uses: ./.github/buildenv |
| with: |
| args: ./hadoop-ozone/dev-support/checks/integration.sh -Pozone |
| - uses: actions/upload-artifact@master |
| if: always() |
| with: |
| name: it-ozone |
| path: target/integration |