1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #
- # 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.
- #
- on:
- pull_request:
- push:
- branches:
- - dev
- env:
- TAG: ci
- RECORDING_PATH: /tmp/recording
- name: E2E
- concurrency:
- group: e2e-${{ github.event.pull_request.number || github.ref }}
- cancel-in-progress: true
- jobs:
- e2e:
- name: ${{ matrix.case.name }}
- runs-on: ubuntu-latest
- strategy:
- matrix:
- case:
- - name: Tenant
- class: org.apache.dolphinscheduler.e2e.cases.security.TenantE2ETest
- steps:
- - uses: actions/checkout@v2
- with:
- submodules: true
- - name: Sanity Check
- uses: ./.github/actions/sanity-check
- - name: Cache local Maven repository
- uses: actions/cache@v2
- with:
- path: ~/.m2/repository
- key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- restore-keys: ${{ runner.os }}-maven-
- - name: Build Image
- run: TAG=ci sh ./docker/build/hooks/build
- - name: Run Test
- run: |
- ./mvnw -f dolphinscheduler-e2e/pom.xml -am \
- -DfailIfNoTests=false \
- -Dtest=${{ matrix.case.class }} test
- - uses: actions/upload-artifact@v2
- if: always()
- name: Upload Recording
- with:
- name: recording
- path: ${{ env.RECORDING_PATH }}
- retention-days: 1
|