Skip to content

Make copied gradle/kradle files executable. #133

Make copied gradle/kradle files executable.

Make copied gradle/kradle files executable. #133

Workflow file for this run

name: Publish Dart to Codecov
on: [push]
jobs:
build:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
# Get dependencies
- name: Install dependencies
run: dart pub get
# Run all tests with coverage
- name: Run tests with coverage
run: dart run test --coverage="coverage"
# Convert to LCOV
- name: Convert coverage to LCOV
run: dart pub run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.dart_tool/package_config.json --report-on=lib
# Upload coverage data
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
with:
file: coverage.lcov