mirror of https://github.com/AMT-Cheif/drift.git
Ensure clean builds in CI
This commit is contained in:
parent
7fca2f013b
commit
8048f90360
|
@ -96,7 +96,7 @@ jobs:
|
|||
- run: dart format -o none --set-exit-if-changed .
|
||||
name: dartfmt
|
||||
- run: dart analyze --fatal-infos --fatal-warnings
|
||||
- run: dart test
|
||||
- run: dart test --preset ci_unit_tests
|
||||
name: test
|
||||
|
||||
sqlparser:
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
tags:
|
||||
integration:
|
||||
background_isolate:
|
||||
skip_during_development:
|
||||
skip: "Skipping outside of CI"
|
||||
# tests that might run as part of https://github.com/dart-lang/build/issues/3236
|
||||
for_build_community_test:
|
||||
|
||||
platforms:
|
||||
- vm
|
||||
|
@ -11,8 +15,17 @@ presets:
|
|||
platforms:
|
||||
- chrome
|
||||
- firefox
|
||||
build_community_tests:
|
||||
include_tags: for_build_community_test
|
||||
tags:
|
||||
skip_during_development:
|
||||
skip: false
|
||||
ci_unit_tests:
|
||||
tags:
|
||||
skip_during_development:
|
||||
skip: false
|
||||
|
||||
override_platforms:
|
||||
firefox:
|
||||
settings:
|
||||
arguments: -headless
|
||||
arguments: -headless
|
||||
|
|
|
@ -19,6 +19,7 @@ dependencies:
|
|||
dev_dependencies:
|
||||
build_test: ^2.0.0
|
||||
build_runner_core: ^7.0.0
|
||||
build_verify: ^3.0.0
|
||||
drift_dev: any
|
||||
uuid: ^3.0.0
|
||||
path: ^1.8.0
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
@Tags(['skip_during_development', 'for_build_community_test'])
|
||||
import 'package:build_verify/build_verify.dart';
|
||||
import 'package:test/scaffolding.dart';
|
||||
|
||||
void main() {
|
||||
test('build is up-to-date',
|
||||
() => expectBuildClean(packageRelativeDirectory: 'drift'));
|
||||
}
|
Loading…
Reference in New Issue