Add lib/fix_data.yaml
for automatic migration with dart fix
.
#417
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: | |
- '*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
sdk: [ 2.19.6, stable ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: ${{ matrix.sdk }} | |
- name: Install dependencies | |
run: dart pub get | |
- name: Validate dependencies | |
run: dart run dependency_validator | |
- name: Check formatting | |
run: dart format --line-length=120 --output=none --set-exit-if-changed . | |
if: ${{ matrix.sdk == 'stable' }} | |
- name: Analyze project source | |
run: dart analyze | |
- name: Check Generated Fixtures Are Up-To-Date | |
run: make gen-fixtures --check | |
- name: Run tests | |
run: make test-with-serve-remotes | |
# TODO https://github.com/Workiva/json_schema/issues/184 | |
# When ^^^ is addressed, remove the --skip-validation flag here | |
- name: Publish - dry run | |
if: ${{ matrix.sdk == 'stable' }} | |
run: dart pub publish --dry-run --skip-validation | |
- name: Test 'dart fix' | |
# if one of these tests stops working in a future Dart SDK, it may be | |
# fine to keep entries in lib/fix_data.yaml and just remove the tests. | |
run: dart fix --compare-to-golden test_fixes/ |