Skip to content

Commit

Permalink
feat: CI for dart analyze and flutter test
Browse files Browse the repository at this point in the history
Added CI to run dart analyze and flutter test on push and pull-requests
  • Loading branch information
LuisThein committed Mar 27, 2021
1 parent 54596b9 commit 7e0e130
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- name: Install Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: '2.0.3'
- name: Install dependencies
run: flutter pub get
- name: Run dart analyze
run: dart analyze
- name: run tests
run: flutter test
- name: build example project
working-directory: ./example
run: flutter build ios --release --no-codesign
- name: publish --dry-run
run: flutter pub publish --dry-run

0 comments on commit 7e0e130

Please sign in to comment.