blob: accf58043abbf0dfc03851833a0c2606046d70e4 [file] [log] [blame]
# 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
env:
CHANNEL: dev
TRAVIS_OS_NAME: linux
jobs:
main:
name: main (${{ matrix.channel }} channel)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
channel:
- master
- dev
- beta
# TODO: The stable channel currently fails.
# - stable
steps:
- name: git clone
uses: actions/checkout@v2
- name: tool/bots.sh
env:
BOT: main
CHANNEL: ${{ matrix.channel }}
run: ./tool/bots.sh
packages:
name: packages
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: git clone
uses: actions/checkout@v2
- name: tool/bots.sh
env:
BOT: packages
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@v2
- name: tool/bots.sh
env:
BOT: ${{ matrix.bot }}
PLATFORM: vm
run: ./tool/bots.sh
- name: image failures
uses: actions/upload-artifact@v1
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
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@v2
- 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