|
| 1 | +name: App Tests |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + inputs: |
| 5 | + recordVideo: |
| 6 | + description: 'Record E2E Tests' |
| 7 | + required: true |
| 8 | + default: 'false' |
| 9 | + push: |
| 10 | + branches: |
| 11 | + pull_request: |
| 12 | +defaults: |
| 13 | + run: |
| 14 | + shell: bash |
| 15 | +jobs: |
| 16 | + generate: |
| 17 | + name: e2e-${{ matrix.app_type }} |
| 18 | + runs-on: macos-latest |
| 19 | + if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.pull_request.title, '[skip ci]') && !contains(github.event.pull_request.title, '[ci skip]') && !contains(github.event.ref_type, '[tag]')" |
| 20 | + timeout-minutes: 60 |
| 21 | + strategy: |
| 22 | + fail-fast: false |
| 23 | + matrix: |
| 24 | + node_version: [14.x] |
| 25 | + app_type: |
| 26 | + - DemoApp |
| 27 | + include: |
| 28 | + - app_type: DemoApp |
| 29 | + env: |
| 30 | + SCRIPT_DIR: ./test/scripts |
| 31 | + steps: |
| 32 | + - name: 'SETUP: Checkout' |
| 33 | + uses: actions/checkout@v2 |
| 34 | + - name: 'SETUP: History' |
| 35 | + run: git --no-pager log -n 10 --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) <%an>%Creset' --abbrev-commit |
| 36 | + - name: 'SETUP: Node' |
| 37 | + |
| 38 | + with: |
| 39 | + node-version: ${{ matrix.node_version }} |
| 40 | + - name: 'SETUP: Java' |
| 41 | + uses: actions/setup-java@v1 |
| 42 | + with: |
| 43 | + java-version: '8.x' |
| 44 | + - name: 'SETUP: Cache Maven archetypes' |
| 45 | + uses: actions/cache@v1 |
| 46 | + with: |
| 47 | + path: ~/.m2/repository |
| 48 | + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} |
| 49 | + restore-keys: | |
| 50 | + ${{ runner.os }}-maven- |
| 51 | + - name: 'SETUP: Clone Kite' |
| 52 | + run: $SCRIPT_DIR/clone-kite.sh |
| 53 | + - name: 'SETUP: Config Git' |
| 54 | + run: $SCRIPT_DIR/git-config.sh |
| 55 | + - name: 'INSTALL: Install Browsers and Drivers' |
| 56 | + run: $SCRIPT_DIR/install-kite.sh |
| 57 | + env: |
| 58 | + KITE_HOME: ${{ runner.workspace }}/KITE |
| 59 | + KITE_SCRIPT_DIR: ${{ runner.workspace }}/KITE/scripts/mac |
| 60 | + - name: 'TEST: Start Grid' |
| 61 | + run: $SCRIPT_DIR/start-kite.sh |
| 62 | + env: |
| 63 | + KITE_HOME: ${{ runner.workspace }}/KITE |
| 64 | + KITE_SCRIPT_DIR: ${{ runner.workspace }}/KITE/scripts/mac |
| 65 | + - name: 'TEST: Run Kite Tests' |
| 66 | + run: $SCRIPT_DIR/run-kite.sh |
| 67 | + env: |
| 68 | + KITE_HOME: ${{ runner.workspace }}/KITE |
| 69 | + KITE_SCRIPT_DIR: ${{ runner.workspace }}/KITE/scripts/mac |
| 70 | + - name: 'POST-TEST: Display Tools' |
| 71 | + run: $SCRIPT_DIR/display-tools.sh |
| 72 | + if: ${{ always() }} |
| 73 | + - name: 'POST-TEST: Upload Artifacts' |
| 74 | + uses: actions/upload-artifact@v2 |
| 75 | + if: ${{ always() }} |
| 76 | + with: |
| 77 | + name: kite-artifacts-${{ matrix.app_type }} |
| 78 | + path: | |
| 79 | + ${{ runner.workspace }}/KITE/KITE-Example-Test |
| 80 | + !${{ runner.workspace }}/KITE/KITE-Example-Test/target |
| 81 | + !${{ runner.workspace }}/KITE/KITE-Example-Test/js/node_modules |
0 commit comments