Skip to content

Commit 3cbd13d

Browse files
authored
Allow the latest analyzer, prepare to publish 0.9.9 (#494)
And latest mono_repo while we're at it
1 parent a801bc4 commit 3cbd13d

File tree

5 files changed

+94
-8
lines changed

5 files changed

+94
-8
lines changed

.github/workflows/dart.yml

+86-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Created with package:mono_repo v3.1.0-beta.3
1+
# Created with package:mono_repo v3.3.0
22
name: Dart CI
33
on:
44
push:
@@ -19,18 +19,36 @@ jobs:
1919
name: mono_repo self validate
2020
runs-on: ubuntu-latest
2121
steps:
22+
- name: Cache Pub hosted dependencies
23+
uses: actions/cache@v2
24+
with:
25+
path: "~/.pub-cache/hosted"
26+
key: "os:ubuntu-latest;pub-cache-hosted;dart:stable"
27+
restore-keys: |
28+
os:ubuntu-latest;pub-cache-hosted
29+
os:ubuntu-latest
2230
- uses: cedx/setup-dart@v2
2331
with:
2432
release-channel: stable
2533
version: latest
2634
- run: dart --version
2735
- uses: actions/checkout@v2
28-
- run: pub global activate mono_repo 3.1.0-beta.3
36+
- run: pub global activate mono_repo 3.3.0
2937
- run: pub global run mono_repo generate --validate
3038
job_002:
3139
name: "OS: linux; SDK: dev; PKGS: _test_annotations, example, example_usage, source_gen; TASKS: [`dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-infos --fatal-warnings .`]"
3240
runs-on: ubuntu-latest
3341
steps:
42+
- name: Cache Pub hosted dependencies
43+
uses: actions/cache@v2
44+
with:
45+
path: "~/.pub-cache/hosted"
46+
key: "os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:_test_annotations-example-example_usage-source_gen;commands:dartfmt-dartanalyzer_0"
47+
restore-keys: |
48+
os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:_test_annotations-example-example_usage-source_gen
49+
os:ubuntu-latest;pub-cache-hosted;dart:dev
50+
os:ubuntu-latest;pub-cache-hosted
51+
os:ubuntu-latest
3452
- uses: cedx/setup-dart@v2
3553
with:
3654
release-channel: dev
@@ -44,6 +62,16 @@ jobs:
4462
name: "OS: linux; SDK: 2.10.0; PKGS: _test_annotations, example, example_usage, source_gen; TASKS: `dartanalyzer --fatal-warnings .`"
4563
runs-on: ubuntu-latest
4664
steps:
65+
- name: Cache Pub hosted dependencies
66+
uses: actions/cache@v2
67+
with:
68+
path: "~/.pub-cache/hosted"
69+
key: "os:ubuntu-latest;pub-cache-hosted;dart:2.10.0;packages:_test_annotations-example-example_usage-source_gen;commands:dartanalyzer_1"
70+
restore-keys: |
71+
os:ubuntu-latest;pub-cache-hosted;dart:2.10.0;packages:_test_annotations-example-example_usage-source_gen
72+
os:ubuntu-latest;pub-cache-hosted;dart:2.10.0
73+
os:ubuntu-latest;pub-cache-hosted
74+
os:ubuntu-latest
4775
- uses: cedx/setup-dart@v2
4876
with:
4977
release-channel: stable
@@ -58,6 +86,16 @@ jobs:
5886
name: "OS: linux; SDK: dev; PKG: example_usage; TASKS: `pub run test --run-skipped`"
5987
runs-on: ubuntu-latest
6088
steps:
89+
- name: Cache Pub hosted dependencies
90+
uses: actions/cache@v2
91+
with:
92+
path: "~/.pub-cache/hosted"
93+
key: "os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:example_usage;commands:test_0"
94+
restore-keys: |
95+
os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:example_usage
96+
os:ubuntu-latest;pub-cache-hosted;dart:dev
97+
os:ubuntu-latest;pub-cache-hosted
98+
os:ubuntu-latest
6199
- uses: cedx/setup-dart@v2
62100
with:
63101
release-channel: dev
@@ -67,10 +105,24 @@ jobs:
67105
PKGS: example_usage
68106
TRAVIS_OS_NAME: linux
69107
run: tool/ci.sh test_0
108+
needs:
109+
- job_001
110+
- job_002
111+
- job_003
70112
job_005:
71113
name: "OS: linux; SDK: 2.10.0; PKG: example_usage; TASKS: `pub run test --run-skipped`"
72114
runs-on: ubuntu-latest
73115
steps:
116+
- name: Cache Pub hosted dependencies
117+
uses: actions/cache@v2
118+
with:
119+
path: "~/.pub-cache/hosted"
120+
key: "os:ubuntu-latest;pub-cache-hosted;dart:2.10.0;packages:example_usage;commands:test_0"
121+
restore-keys: |
122+
os:ubuntu-latest;pub-cache-hosted;dart:2.10.0;packages:example_usage
123+
os:ubuntu-latest;pub-cache-hosted;dart:2.10.0
124+
os:ubuntu-latest;pub-cache-hosted
125+
os:ubuntu-latest
74126
- uses: cedx/setup-dart@v2
75127
with:
76128
release-channel: stable
@@ -81,10 +133,24 @@ jobs:
81133
PKGS: example_usage
82134
TRAVIS_OS_NAME: linux
83135
run: tool/ci.sh test_0
136+
needs:
137+
- job_001
138+
- job_002
139+
- job_003
84140
job_006:
85141
name: "OS: linux; SDK: 2.10.0; PKG: source_gen; TASKS: `pub run test`"
86142
runs-on: ubuntu-latest
87143
steps:
144+
- name: Cache Pub hosted dependencies
145+
uses: actions/cache@v2
146+
with:
147+
path: "~/.pub-cache/hosted"
148+
key: "os:ubuntu-latest;pub-cache-hosted;dart:2.10.0;packages:source_gen;commands:test_1"
149+
restore-keys: |
150+
os:ubuntu-latest;pub-cache-hosted;dart:2.10.0;packages:source_gen
151+
os:ubuntu-latest;pub-cache-hosted;dart:2.10.0
152+
os:ubuntu-latest;pub-cache-hosted
153+
os:ubuntu-latest
88154
- uses: cedx/setup-dart@v2
89155
with:
90156
release-channel: stable
@@ -95,10 +161,24 @@ jobs:
95161
PKGS: source_gen
96162
TRAVIS_OS_NAME: linux
97163
run: tool/ci.sh test_1
164+
needs:
165+
- job_001
166+
- job_002
167+
- job_003
98168
job_007:
99169
name: "OS: linux; SDK: dev; PKG: source_gen; TASKS: `pub run test`"
100170
runs-on: ubuntu-latest
101171
steps:
172+
- name: Cache Pub hosted dependencies
173+
uses: actions/cache@v2
174+
with:
175+
path: "~/.pub-cache/hosted"
176+
key: "os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:source_gen;commands:test_1"
177+
restore-keys: |
178+
os:ubuntu-latest;pub-cache-hosted;dart:dev;packages:source_gen
179+
os:ubuntu-latest;pub-cache-hosted;dart:dev
180+
os:ubuntu-latest;pub-cache-hosted
181+
os:ubuntu-latest
102182
- uses: cedx/setup-dart@v2
103183
with:
104184
release-channel: dev
@@ -108,3 +188,7 @@ jobs:
108188
PKGS: source_gen
109189
TRAVIS_OS_NAME: linux
110190
run: tool/ci.sh test_1
191+
needs:
192+
- job_001
193+
- job_002
194+
- job_003

mono_repo.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# See with https://github.com/google/mono_repo.dart for details on this file
2-
self_validate: true
2+
self_validate: analyze_format
33

44
github:
55
# Setting just `cron` keeps the defaults for `push` and `pull_request`

source_gen/CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## 0.9.9-dev
1+
## 0.9.9
2+
3+
* Allow `package:analyzer` version `0.41.x`.
24

35
## 0.9.8
46

source_gen/pubspec.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: source_gen
2-
version: 0.9.9-dev
2+
version: 0.9.9
33
description: >-
44
Source code generation builders and utilities for the Dart build system
5-
homepage: https://github.com/dart-lang/source_gen
5+
repository: https://github.com/dart-lang/source_gen
66

77
environment:
88
sdk: ">=2.10.0 <3.0.0"
99

1010
dependencies:
11-
analyzer: '>=0.39.11 <0.41.0'
11+
analyzer: '>=0.39.11 <0.42.0'
1212
async: ^2.0.7
1313
build: ^1.4.0
1414
dart_style: ^1.0.0

tool/ci.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Created with package:mono_repo v3.1.0-beta.3
2+
# Created with package:mono_repo v3.3.0
33

44
# Support built in commands on windows out of the box.
55
function pub() {

0 commit comments

Comments
 (0)