fix #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
# lint: | |
# name: Dart/Flutter Package Analyzer | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Dart/Flutter Package Analyzer | |
# # You may pin to the exact commit or the version. | |
# # uses: axel-op/dart-package-analyzer@7a6c3c66bce78d82b729a1ffef2d9458fde6c8d2 | |
# uses: axel-op/dart-package-analyzer@v3 | |
# with: | |
# # Token to connect to GitHub. Use secrets.GITHUB_TOKEN | |
# githubToken: ${{secrets.GITHUB_TOKEN}} | |
name: Dart | |
on: | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1 | |
- run: dart pub get | |
- run: dart format --output=none --set-exit-if-changed . | |
- run: dart analyze | |
- run: dart test |