| # Copyright 2020 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| name: devtools |
| |
| on: |
| # pull_request: |
| push: |
| branches: |
| - master |
| |
| # Declare default permissions as read only. |
| permissions: read-all |
| |
| env: |
| AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| |
| jobs: |
| main: |
| name: main |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| steps: |
| - name: git clone |
| uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 |
| - name: tool/bots.sh |
| env: |
| BOT: main |
| run: ./tool/bots.sh |
| |
| test: |
| name: test ${{ matrix.bot }} |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| bot: |
| - test_ddc |
| - test_dart2js |
| steps: |
| - name: git clone |
| uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 |
| |
| - name: tool/bots.sh |
| env: |
| BOT: ${{ matrix.bot }} |
| PLATFORM: vm |
| run: ./tool/bots.sh |
| |
| - name: image failures |
| uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 |
| if: failure() # Only if failure then failures directory exists. |
| with: |
| # TODO(terry): matrix.os currently empty. If we run tests on other |
| # platforms this will be used. |
| name: test-image-failures-${{ matrix.os }} # Name for the artifact |
| path: packages/devtools_app/test/failures # Path to upload |
| |
| macos-test: |
| name: macos ${{ matrix.bot }} |
| runs-on: macos-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| bot: |
| - test_dart2js |
| steps: |
| - name: git clone |
| uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 |
| |
| - name: tool/bots.sh |
| env: |
| BOT: ${{ matrix.bot }} |
| PLATFORM: vm |
| run: ./tool/bots.sh |
| |
| - name: Upload Golden Failure Artifacts |
| uses: actions/upload-artifact@v3 |
| if: failure() |
| with: |
| name: golden_image_failures.${{ matrix.bot }} |
| path: packages/devtools_app/test/**/failures/*.png |
| |
| |
| # TODO(https://github.com/flutter/devtools/issues/1715): add a windows compatible version of tool/bots.sh |
| # and run it from this job. |
| # windows-test: |
| # name: windows ${{ matrix.bot }} |
| # runs-on: windows-latest |
| # strategy: |
| # fail-fast: false |
| # matrix: |
| # bot: |
| # - test_dart2js |
| # steps: |
| # - name: git clone |
| # uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 |
| # |
| # - name: tool/bots.sh |
| # env: |
| # BOT: ${{ matrix.bot }} |
| # PLATFORM: vm |
| # run: ./tool/bots.sh |
| |
| # TODO(https://github.com/flutter/devtools/issues/1987): rewrite integration tests. |
| # integration: |
| # name: integration ${{ matrix.bot }} |
| # runs-on: ubuntu-latest |
| # strategy: |
| # fail-fast: false |
| # matrix: |
| # bot: |
| # - integration_ddc |
| # - integration_dart2js |
| # steps: |
| # - name: git clone |
| # uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 |
| # - name: tool/bots.sh |
| # env: |
| # BOT: ${{ matrix.bot }} |
| # run: ./tool/bots.sh |
| |
| # TODO(https://github.com/flutter/devtools/issues/2437): |
| # PLATFORM=chrome is going away. We need to move these tests to run with |
| # chromedriver. |
| # - BOT=test_ddc PLATFORM=chrome |
| # PLATFORM=chrome is going away. We need to move these tests to run with |
| # chromedriver. |
| # - BOT=test_dart2js PLATFORM=chrome |
| |