Create dart.yml

This commit is contained in:
Salvatore Giordano
2020-01-08 23:29:12 +01:00
committed by GitHub
parent eb2d89b891
commit 946c27394b

29
.github/workflows/dart.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Dart CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container:
image: google/dart:latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: pub get
- name: Run tests
run: pub run test
- name: Publish Dart/Flutter package
uses: sakebook/actions-flutter-pub-publisher@v1.2.1
with:
# Google Account credential
credential: ${{ secrets.CREDENTIALS }}
# (Optional) Publish packages type. (default: true)
flutter_package: true # optional, default is true
# (Optional) Skip test (default: false)
skip_test: true # optional
# (Optional) Package directory (default: ".")
package_directory: . # optional, default is .