-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.11 KB
/
dart.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# name: Dart
# on:
# push:
# branches: [ "master" ]
# pull_request:
# branches: [ "master" ]
# jobs:
# lint:
# name: Dart/Flutter Package Analyzer
# runs-on: ubuntu-latest
# steps:
# - name: Dart/Flutter Package Analyzer
# # You may pin to the exact commit or the version.
# # uses: axel-op/dart-package-analyzer@7a6c3c66bce78d82b729a1ffef2d9458fde6c8d2
# uses: axel-op/dart-package-analyzer@v3
# with:
# # Token to connect to GitHub. Use secrets.GITHUB_TOKEN
# githubToken: ${{secrets.GITHUB_TOKEN}}
name: Dart
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
- run: dart analyze
- run: dart test