Skip to content

Commit b9688b5

Browse files
Merge pull request #134 from Workiva/batch/cplat/raise_more_max_versions
Raise More Max Versions
2 parents 0ee8bc4 + e9edb57 commit b9688b5

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

.github/workflows/dart_ci.yml

+14-6
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,21 @@ jobs:
2727

2828
- id: install
2929
name: Install dependencies
30-
run: pub get --no-precompile
30+
run: dart pub get --no-precompile
3131

3232
- name: Validate dependencies
3333
run: dart run dependency_validator
3434
if: always() && steps.install.outcome == 'success'
3535

3636
- name: Analyze project source
37-
run: if [ ${{ matrix.sdk }} = '2.7.2' ]; then pub global activate tuneup && tuneup check --ignore-infos; else dart analyze; fi
37+
run: if [ ${{ matrix.sdk }} = '2.7.2' ]; then dart pub global activate tuneup && tuneup check --ignore-infos; else dart analyze; fi
3838
if: always() && steps.install.outcome == 'success'
3939

4040
test_ddc:
41+
permissions:
42+
id-token: write
43+
contents: read
44+
checks: write
4145
runs-on: ubuntu-latest
4246
strategy:
4347
fail-fast: false
@@ -54,10 +58,10 @@ jobs:
5458

5559
- id: install
5660
name: Install dependencies
57-
run: pub get --no-precompile
61+
run: dart pub get --no-precompile
5862

5963
- name: Run tests (DDC)
60-
run: pub run build_runner test -- --file-reporter json:reports/${{ matrix.sdk }}/ddc/test-results.json
64+
run: dart run build_runner test -- --file-reporter json:reports/${{ matrix.sdk }}/ddc/test-results.json
6165
if: always() && steps.install.outcome == 'success'
6266

6367
- name: Upload Unit Test Results
@@ -76,6 +80,10 @@ jobs:
7680
reporter: dart-json
7781

7882
test_dart2js:
83+
permissions:
84+
id-token: write
85+
contents: read
86+
checks: write
7987
runs-on: ubuntu-latest
8088
strategy:
8189
fail-fast: false
@@ -92,10 +100,10 @@ jobs:
92100

93101
- id: install
94102
name: Install dependencies
95-
run: pub get --no-precompile
103+
run: dart pub get --no-precompile
96104

97105
- name: Run tests (dart2js)
98-
run: pub run build_runner test -r -- --file-reporter json:reports/${{ matrix.sdk }}/dart2js/test-results.json
106+
run: dart run build_runner test -r -- --file-reporter json:reports/${{ matrix.sdk }}/dart2js/test-results.json
99107
if: always() && steps.install.outcome == 'success'
100108

101109
- name: Upload Unit Test Results

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ RUN chmod 600 /root/.ssh/id_rsa
2424
WORKDIR /build/
2525
ADD . /build/
2626

27-
RUN pub get
27+
RUN dart pub get
2828
FROM scratch

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2. Run your tests:
2323
2424
```bash
25-
$ pub run test test/your_test_file.dart
25+
$ dart run test test/your_test_file.dart
2626
```
2727
2828

pubspec.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ dependencies:
1414
test: ^1.15.7
1515
dev_dependencies:
1616
build_runner: '>=1.7.1 <3.0.0'
17-
build_test: ">=0.10.9 <2.0.0"
18-
build_web_compilers: ^2.9.0
19-
dependency_validator: ^2.0.0
17+
build_test: ">=0.10.9 <3.0.0"
18+
build_web_compilers: '>=2.12.0 <4.0.0'
19+
dependency_validator: '>=2.0.0 <4.0.0'
2020
pedantic: ^1.8.0
2121

2222
dependency_validator:

0 commit comments

Comments
 (0)