godofredoc | 8b7a6e4 | 2022-10-06 17:40:23 -0700 | [diff] [blame] | 1 | # 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 | |
| 5 | name: coverage |
| 6 | |
| 7 | on: |
| 8 | push: |
| 9 | branches: |
| 10 | - master |
Jenn Magder | 3f89d63 | 2022-10-18 15:24:17 -0700 | [diff] [blame] | 11 | paths: |
| 12 | - 'packages/flutter/**' |
godofredoc | 8b7a6e4 | 2022-10-06 17:40:23 -0700 | [diff] [blame] | 13 | |
| 14 | permissions: read-all |
| 15 | |
| 16 | jobs: |
| 17 | build: |
godofredoc | 8b7a6e4 | 2022-10-06 17:40:23 -0700 | [diff] [blame] | 18 | name: coverage |
| 19 | runs-on: ubuntu-latest |
godofredoc | bd4376c | 2022-10-07 12:50:46 -0700 | [diff] [blame] | 20 | if: ${{ github.repository == 'flutter/flutter' }} |
godofredoc | 8b7a6e4 | 2022-10-06 17:40:23 -0700 | [diff] [blame] | 21 | steps: |
dependabot[bot] | d387f55 | 2023-08-24 22:25:25 +0000 | [diff] [blame] | 22 | - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 |
godofredoc | 8b7a6e4 | 2022-10-06 17:40:23 -0700 | [diff] [blame] | 23 | - name: ./bin/flutter test --coverage |
| 24 | run: pushd packages/flutter;../../bin/flutter test --coverage -j 1;popd |
| 25 | - name: upload coverage |
dependabot[bot] | 9c184d4 | 2023-08-02 06:57:35 +0000 | [diff] [blame] | 26 | uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d |
godofredoc | 8b7a6e4 | 2022-10-06 17:40:23 -0700 | [diff] [blame] | 27 | with: |
godofredoc | bd4376c | 2022-10-07 12:50:46 -0700 | [diff] [blame] | 28 | files: packages/flutter/coverage/lcov.info |
| 29 | verbose: true |