Skip to content

Commit 711478d

Browse files
authored
Created CI workflow
1 parent cc74247 commit 711478d

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/dart.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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
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+
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
# Note: This workflow uses the latest stable version of the Dart SDK.
22+
# You can specify other versions if desired, see documentation here:
23+
# https://github.com/dart-lang/setup-dart/blob/main/README.md
24+
# - uses: dart-lang/setup-dart@v1
25+
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
26+
27+
- name: Install dependencies
28+
run: dart pub get
29+
30+
- name: Verify formatting
31+
run: dart format --output=none --set-exit-if-changed .
32+
33+
# Consider passing '--fatal-infos' for slightly stricter analysis.
34+
- name: Analyze project source
35+
run: dart analyze
36+
37+
# Your project will need to have tests in test/ and a dependency on
38+
# package:test for this step to succeed. Note that Flutter projects will
39+
# want to change this to 'flutter test'.
40+
- name: Run tests
41+
run: dart test

0 commit comments

Comments
 (0)