mirror of
https://github.com/flutter/flutter.git
synced 2026-02-15 15:23:32 +08:00
32 lines
897 B
YAML
32 lines
897 B
YAML
# Copyright 2013 The Flutter 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: coverage
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'packages/flutter/**'
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
build:
|
|
permissions:
|
|
checks: write # for coverallsapp/github-action to create new checks
|
|
name: coverage
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository == 'flutter/flutter' }}
|
|
steps:
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
|
- name: ./bin/flutter test --coverage
|
|
run: pushd packages/flutter;../../bin/flutter test --coverage -j 1;popd
|
|
- name: upload coverage
|
|
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378
|
|
with:
|
|
files: packages/flutter/coverage/lcov.info
|
|
verbose: true
|