Skip to content

test: add xml converter and update fakes #53

test: add xml converter and update fakes

test: add xml converter and update fakes #53

Workflow file for this run

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]