| # 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 |
| |
| # When updating this version, also update the version in |
| # flutter-version.txt. |
| # |
| # This version should be updated periodically and should generally |
| # track the latest Flutter dev release. Dev releases come out ~weekly; |
| # the versions can be viewed at https://github.com/flutter/flutter/tags. |
| env: |
| PINNED_FLUTTER_CHANNEL: 3.3.0-0.1.pre |
| |
| jobs: |
| main: |
| name: main |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| flutter-test-env: |
| - pinned |
| steps: |
| - name: git clone |
| uses: actions/checkout@d171c3b028d844f2bf14e9fdec0c58114451e4bf |
| - name: tool/bots.sh |
| env: |
| BOT: main |
| FLUTTER_TEST_ENV: ${{ matrix.flutter-test-env }} |
| run: ./tool/bots.sh |
| |
| packages: |
| name: packages |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| flutter-test-env: |
| - pinned |
| steps: |
| - name: git clone |
| uses: actions/checkout@d171c3b028d844f2bf14e9fdec0c58114451e4bf |
| - name: tool/bots.sh |
| env: |
| BOT: packages |
| FLUTTER_TEST_ENV: ${{ matrix.flutter-test-env }} |
| run: ./tool/bots.sh |
| |
| test: |
| name: test ${{ matrix.bot }} - (flutter ${{ matrix.flutter-test-env }}) |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| bot: |
| - test_ddc |
| - test_dart2js |
| flutter-test-env: |
| - pinned |
| - master |
| steps: |
| - name: git clone |
| uses: actions/checkout@d171c3b028d844f2bf14e9fdec0c58114451e4bf |
| |
| - name: tool/bots.sh |
| env: |
| BOT: ${{ matrix.bot }} |
| PLATFORM: vm |
| FLUTTER_TEST_ENV: ${{ matrix.flutter-test-env }} |
| run: ./tool/bots.sh |
| |
| - name: image failures |
| uses: actions/upload-artifact@34622df80861c3ed63eb2bff892de2f1fbf4c9da |
| 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 }} - (flutter ${{ matrix.flutter-test-env }}) |
| runs-on: macos-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| bot: |
| - test_dart2js |
| flutter-test-env: |
| - pinned |
| steps: |
| - name: git clone |
| uses: actions/checkout@v2 |
| |
| - name: tool/bots.sh |
| env: |
| BOT: ${{ matrix.bot }} |
| PLATFORM: vm |
| FLUTTER_TEST_ENV: ${{ matrix.flutter-test-env }} |
| run: ./tool/bots.sh |
| |
| # 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 }} - (flutter ${{ matrix.flutter-test-env }}) |
| # runs-on: windows-latest |
| # strategy: |
| # fail-fast: false |
| # matrix: |
| # bot: |
| # - test_dart2js |
| # flutter-test-env: |
| # - pinned |
| # steps: |
| # - name: git clone |
| # uses: actions/checkout@v2 |
| # |
| # - name: tool/bots.sh |
| # env: |
| # BOT: ${{ matrix.bot }} |
| # PLATFORM: vm |
| # FLUTTER_TEST_ENV: ${{ matrix.flutter-test-env }} |
| # run: ./tool/bots.sh |
| |
| # TODO(https://github.com/flutter/devtools/issues/1987): rewrite integration tests. |
| # integration: |
| # name: integration ${{ matrix.bot }} - (flutter ${{ matrix.flutter-test-env }}) |
| # runs-on: ubuntu-latest |
| # strategy: |
| # fail-fast: false |
| # matrix: |
| # bot: |
| # - integration_ddc |
| # - integration_dart2js |
| # flutter-test-env: |
| # - pinned |
| # - master |
| # steps: |
| # - name: git clone |
| # uses: actions/checkout@d171c3b028d844f2bf14e9fdec0c58114451e4bf |
| # - name: tool/bots.sh |
| # env: |
| # BOT: ${{ matrix.bot }} |
| # FLUTTER_TEST_ENV: ${{ matrix.flutter-test-env }} |
| # 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 |
| |