opentelemetry-dart 0.17.0 #221
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dart CI | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'test_consume_*' | |
pull_request: | |
branches: | |
- '*' | |
concurrency: | |
group: opentelemetry-coverage-${{ github.ref }}-1 | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
issues: write | |
pull-requests: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: 2.19.6 | |
- name: Install protobuf-compiler | |
run: sudo apt install -y protobuf-compiler | |
- name: Install Dart dependencies | |
run: dart pub get | |
- name: Initialize protobuf | |
run: make init | |
- name: Format, analyze, and run tests | |
run: make test | |
- name: Generate Coverage | |
run: dart test --coverage=./coverage | |
- name: Activate Coverage Package | |
run: dart pub global activate coverage | |
- name: Format Coverage | |
run: dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --report-on=lib --lcov -o ./coverage/lcov.info -i ./coverage | |
- name: Activate RemoveFromCoverage Package | |
run: dart pub global activate remove_from_coverage | |
- name: Ignore Files For Coverage | |
run: dart pub global run remove_from_coverage:remove_from_coverage -f coverage/lcov.info -r 'lib\/src\/sdk\/proto\/opentelemetry\/proto\/.+' | |
- name: Package Artifacts | |
run: ./package.sh |