-
Notifications
You must be signed in to change notification settings - Fork 69
37 lines (29 loc) · 1.24 KB
/
pull_request-ci.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
name: Pull Request Checker
# This workflow is triggered on pull request to the repository.
# Run this script when PR and status is open
on: pull_request
jobs:
build:
# This job will run on ubuntu virtual machine
runs-on: ubuntu-latest
steps:
# Setup Java environment in order to build the Android app.
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'
# Setup the flutter environment.
- uses: subosito/flutter-action@v2
with:
channel: 'stable' # 'dev', 'alpha', default to: 'stable'
# flutter-version: '1.12.x' # you can also specify exact version of flutter
# Get flutter dependencies.
- name: Run initialize flutter project
run: flutter pub get ;flutter gen-l10n;flutter pub run build_runner build --delete-conflicting-outputs
# Statically analyze the Dart code for any errors.
- name: Run flutter analyze
run: flutter analyze --no-fatal-infos --no-fatal-warnings
# Run widget tests for our flutter project.
- name: Run flutter test
run: flutter test # For now, just disable flutter test