File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow uses actions that are not certified by GitHub.
2+ # They are provided by a third-party and are governed by
3+ # separate terms of service, privacy policy, and support
4+ # documentation.
5+
6+ name : Dart with MySQL CI
7+
8+ on :
9+ push :
10+ branches : [ "master" ]
11+ pull_request :
12+ branches : [ "master" ]
13+
14+ jobs :
15+ build :
16+ runs-on : ubuntu-latest
17+ services :
18+ mysql :
19+ image : mysql:8.0
20+ env :
21+ MYSQL_ROOT_PASSWORD : root
22+ MYSQL_DATABASE : test_db
23+ ports :
24+ - 3306:3306
25+ options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
26+ steps :
27+ - uses : actions/checkout@v4
28+
29+ # Note: This workflow uses the latest stable version of the Dart SDK.
30+ # You can specify other versions if desired, see documentation here:
31+ # https://github.com/dart-lang/setup-dart/blob/main/README.md
32+ # - uses: dart-lang/setup-dart@v1
33+ - uses : dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
34+
35+ - name : Install dependencies
36+ run : dart pub get
37+
38+ # Uncomment this step to verify the use of 'dart format' on each commit.
39+ # - name: Verify formatting
40+ # run: dart format --output=none --set-exit-if-changed .
41+
42+ # Consider passing '--fatal-infos' for slightly stricter analysis.
43+ - name : Analyze project source
44+ run : dart analyze
45+
46+ # Your project will need to have tests in test/ and a dependency on
47+ # package:test for this step to succeed. Note that Flutter projects will
48+ # want to change this to 'flutter test'.
49+ - name : Run tests
50+ run : dart test
You can’t perform that action at this time.
0 commit comments