Skip to content

Fix publish workflow #36

Fix publish workflow

Fix publish workflow #36

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- master
jobs:
test:
name: Run tests ${{matrix.sdk}} on ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
sdk: ['stable']
runs-on: ${{ matrix.os }}
steps:
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- uses: actions/checkout@v2
- run: dart --version
- run: dart pub get
- run: dart analyze --fatal-infos .
- run: dart test
- run: dart tool/prepare_submit.dart
- name: "check for uncommitted changes"
run: |
git diff --exit-code --stat -- . \
|| (echo "##[error] found changed files after build. please run 'dart tool/prepare_submit.dart'" \
"and check in all changes" \
&& exit 1)
shell: bash