godofredoc 8bbe71787a
Remove token permissions for coverage. (#124909)
The coverage build does not require write access to checks.
2023-04-17 17:31:30 +00:00

30 lines
805 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:
name: coverage
runs-on: ubuntu-latest
if: ${{ github.repository == 'flutter/flutter' }}
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: ./bin/flutter test --coverage
run: pushd packages/flutter;../../bin/flutter test --coverage -j 1;popd
- name: upload coverage
uses: codecov/codecov-action@40a12dcee2df644d47232dde008099a3e9e4f865
with:
files: packages/flutter/coverage/lcov.info
verbose: true