blob: a1a23a0dbd350eaad03f92c138a803116cfac78a [file] [log] [blame]
godofredoc8b7a6e42022-10-06 17:40:23 -07001# Copyright 2013 The Flutter Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5name: coverage
6
7on:
8 push:
9 branches:
10 - master
Jenn Magder3f89d632022-10-18 15:24:17 -070011 paths:
12 - 'packages/flutter/**'
godofredoc8b7a6e42022-10-06 17:40:23 -070013
14permissions: read-all
15
16jobs:
17 build:
godofredoc8b7a6e42022-10-06 17:40:23 -070018 name: coverage
19 runs-on: ubuntu-latest
godofredocbd4376c2022-10-07 12:50:46 -070020 if: ${{ github.repository == 'flutter/flutter' }}
godofredoc8b7a6e42022-10-06 17:40:23 -070021 steps:
dependabot[bot]d387f552023-08-24 22:25:25 +000022 - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
godofredoc8b7a6e42022-10-06 17:40:23 -070023 - name: ./bin/flutter test --coverage
24 run: pushd packages/flutter;../../bin/flutter test --coverage -j 1;popd
25 - name: upload coverage
dependabot[bot]9c184d42023-08-02 06:57:35 +000026 uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
godofredoc8b7a6e42022-10-06 17:40:23 -070027 with:
godofredocbd4376c2022-10-07 12:50:46 -070028 files: packages/flutter/coverage/lcov.info
29 verbose: true