-
Notifications
You must be signed in to change notification settings - Fork 43
35 lines (31 loc) · 980 Bytes
/
unit_test.yaml
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
# This workflow will test the Dart code in the repository
# to make sure that the quality of the code is high.
name: Dart
on:
push:
# Run the workflow on the master branch on push
branches: [ "master" ]
pull_request:
# Run the workflow on the master branch on pull requests
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.24.0
# Install dependencies
- name: Install dependencies
run: flutter pub get
# Check for formatting issues
- name: Check formatting
run: dart format --set-exit-if-changed .
# Analyze the project source
- name: Analyze project source
run: flutter analyze --fatal-infos --fatal-warnings
# Run test to ensure that the code is working as expected
- name: Run tests
run: flutter test