Ensure clean builds in CI

This commit is contained in:
Simon Binder 2022-01-18 22:30:54 +01:00
parent 7fca2f013b
commit 8048f90360
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
4 changed files with 24 additions and 2 deletions

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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'));
}