fix: xml converter iterable fields #57
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: Test | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Dart SDK | |
uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: ${{ matrix.sdk }} | |
- name: Install dependencies | |
run: | | |
cd xml_serializable | |
dart pub get | |
- name: Run tests | |
run: | | |
cd xml_serializable | |
dart test --coverage './coverage' | |
- name: Format coverage | |
run: | | |
cd xml_serializable | |
dart pub global activate coverage | |
dart pub global run coverage:format_coverage --report-on 'lib' --lcov --out './coverage/lcov.info' --in './coverage' | |
- name: Upload coverage | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-${{ matrix.os }}-${{ matrix.sdk }} | |
path: ./xml_serializable/coverage/lcov.info | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
sdk: [stable, beta, dev] |