Skip to content

Commit e8b7f0c

Browse files
authored
Added CI for platform interface.
1 parent 771ac61 commit e8b7f0c

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# This is a basic workflow to help you get started with Actions
2+
name: google_api_availability_platform_interface
3+
4+
# Controls when the action will run. Triggers the workflow on push or pull request
5+
# events but only for the main branch
6+
on:
7+
push:
8+
branches: [ main ]
9+
paths:
10+
- 'google_api_availability_platform_interface/**'
11+
pull_request:
12+
branches: [ main ]
13+
paths:
14+
- 'google_api_availability_platform_interface/**'
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
build:
19+
name: Format
20+
21+
# The type of runner that the job will run on
22+
runs-on: ubuntu-latest
23+
24+
env:
25+
source-directory: ./google_api_availability_platform_interface
26+
27+
# Steps represent a sequence of tasks that will be executed as part of the job
28+
steps:
29+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
30+
- uses: actions/checkout@v3
31+
32+
# Make sure the stable version of Flutter is available
33+
- uses: subosito/flutter-action@v2
34+
with:
35+
channel: 'stable'
36+
37+
# Download all Flutter packages
38+
- name: Download dependencies
39+
run: flutter pub get
40+
working-directory: ${{env.source-directory}}
41+
42+
# Run Flutter Format to ensure formatting is valid
43+
- name: Run Flutter Format
44+
run: flutter format --set-exit-if-changed .
45+
working-directory: ${{env.source-directory}}
46+
47+
# Run Flutter Analyzer
48+
- name: Run Flutter Analyzer
49+
run: flutter analyze
50+
working-directory: ${{env.source-directory}}
51+
52+
# Run all unit-tests with code coverage
53+
- name: Run unit tests
54+
run: flutter test --coverage
55+
working-directory: ${{env.source-directory}}

0 commit comments

Comments
 (0)