Skip to content

Merge pull request #11 from drybnikov/maintance/update_sdk_2_2_1 #26

Merge pull request #11 from drybnikov/maintance/update_sdk_2_2_1

Merge pull request #11 from drybnikov/maintance/update_sdk_2_2_1 #26

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main, develop ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# job for plugin klaviyo_flutter
klaviyo_flutter:
runs-on: ubuntu-latest
#env:
# source-directory: ./
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
# Download all Flutter packages
- name: Download dependencies
run: flutter pub get
working-directory: ${{env.source-directory}}
# Check for any formatting issues in the code.
- name: check code format
run: dart format --set-exit-if-changed .
working-directory: ${{env.source-directory}}
# Run Flutter Analyzer
- name: Run Flutter Analyzer
run: flutter analyze
working-directory: ${{env.source-directory}}
# Run all unit-tests with code coverage
- name: Run unit tests
run: flutter test --coverage
working-directory: ${{env.source-directory}}