-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from Workiva/dart_dev_less_checks
FEA-4583: Support packages that don't utilize dart_dev
- Loading branch information
Showing
17 changed files
with
161 additions
and
40 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
Workflows for use with [Workiva's](https://github.com/Workiva) OpenSource Dart projects. | ||
|
||
The majority of workflows assume [dart_dev](https://github.com/Workiva/dart_dev) is installed and being used within the repo | ||
Workflows support configuration with [`dart_dev`](https://github.com/Workiva/dart_dev), [`build_runner`](https://pub.dev/packages/build_runner), and basic dart packages. | ||
|
||
|
||
## Basic Dart CI Setup | ||
|
@@ -26,7 +26,8 @@ jobs: | |
build: | ||
uses: Workiva/gha-dart-oss/.github/workflows/[email protected] | ||
|
||
# Runs unit tests in both d2js and ddc | ||
# Runs unit tests in dev mode (vm/ddc), and optionally `--release` if executing | ||
# against a webdev configured repo | ||
unit-tests: | ||
uses: Workiva/gha-dart-oss/.github/workflows/[email protected] | ||
``` | ||
|
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name: test_pubspec | ||
publish_to: none | ||
environment: | ||
sdk: '>=2.10.0 <3.0.0' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
final newVar = 'asdf'; | ||
|
||
String foo(int inp) { | ||
return inp.toString(); | ||
} | ||
|
||
void main() { | ||
print(foo(4)); | ||
} |
2 changes: 1 addition & 1 deletion
2
__tests__/fixtures/checks/pubspec.yaml → ...s__/fixtures/checks/dart-dev/pubspec.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: checks_test | ||
name: test_pubspec | ||
publish_to: none | ||
environment: | ||
sdk: '>=2.10.0 <3.0.0' | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: test_pubspec | ||
publish_to: none | ||
environment: | ||
sdk: '>=2.11.0 <3.0.0' | ||
|
||
dependencies: | ||
test: ^1.21.1 | ||
build_runner: ^2.0.0 | ||
build_test: ^2.2.1 |
7 changes: 7 additions & 0 deletions
7
__tests__/fixtures/test-unit/build-runner/test/main_test.dart
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import 'package:test/test.dart'; | ||
|
||
void main() { | ||
test('some test', () { | ||
expect(1, 1); | ||
}); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: test_pubspec | ||
publish_to: none | ||
environment: | ||
sdk: '>=2.11.0 <3.0.0' | ||
|
||
dependencies: | ||
test: ^1.21.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import 'package:test/test.dart'; | ||
|
||
void main() { | ||
test('some test', () { | ||
expect(1, 1); | ||
}); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: test_pubspec | ||
publish_to: none | ||
environment: | ||
sdk: '>=2.11.0 <3.0.0' | ||
|
||
dependencies: | ||
test: ^1.21.1 | ||
dart_dev: ^4.0.2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import 'package:test/test.dart'; | ||
|
||
void main() { | ||
test('some test', () { | ||
expect(1, 1); | ||
}); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: unit_test_with_chrome | ||
name: test_pubspec | ||
publish_to: none | ||
environment: | ||
sdk: '>=2.11.0 <3.0.0' | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: unit_test | ||
name: test_pubspec | ||
publish_to: none | ||
environment: | ||
sdk: '>=2.11.0 <3.0.0' | ||
|