Skip to content

Commit 360f05e

Browse files
Revert version range, readd legacy run
1 parent 3a11e2c commit 360f05e

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/dart_ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,43 @@ jobs:
4646
dart run build_runner test -r -- -P concurrent-tests
4747
dart run build_runner test -r -- -P non-concurrent-tests
4848
timeout-minutes: 10
49+
if: ${{ always() && steps.install.outcome == 'success' }}
50+
51+
build_legacy:
52+
runs-on: ubuntu-latest
53+
strategy:
54+
fail-fast: false
55+
matrix:
56+
sdk: [ 2.13.4 ]
57+
steps:
58+
- uses: actions/checkout@v2
59+
- uses: dart-lang/setup-dart@v1
60+
with:
61+
sdk: ${{ matrix.sdk }}
62+
63+
- id: install
64+
name: Install dependencies
65+
run: pub get
66+
timeout-minutes: 2
67+
68+
- name: Check formatting
69+
run: dart format . -l 120 --set-exit-if-changed
70+
if: ${{ always() && steps.install.outcome == 'success' }}
71+
72+
- name: Analyze project source
73+
run: dartanalyzer .
74+
if: ${{ always() && steps.install.outcome == 'success' }}
75+
76+
- name: Run tests (DDC)
77+
run: |
78+
pub run build_runner test -- -P concurrent-tests
79+
pub run build_runner test -- -P non-concurrent-tests
80+
timeout-minutes: 10
81+
if: ${{ always() && steps.install.outcome == 'success' }}
82+
83+
- name: Run tests (dart2js)
84+
run: |
85+
pub run build_runner test -r -- -P concurrent-tests
86+
pub run build_runner test -r -- -P non-concurrent-tests
87+
timeout-minutes: 10
4988
if: ${{ always() && steps.install.outcome == 'success' }}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A Dart unit testing library for OverReact components that mimics th
44
homepage: https://github.com/Workiva/react_testing_library/
55
documentation: https://workiva.github.io/react_testing_library
66
environment:
7-
sdk: ">=2.18.4 <3.0.0"
7+
sdk: ">=2.11.0 <3.0.0"
88

99
dependencies:
1010
color: ">=2.1.1 <4.0.0"

0 commit comments

Comments
 (0)