name: Dart

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:
    runs-on: ${{matrix.os}}
    strategy:
      # We want to see the results on edge even if beta fails (and vice versa).
      # This prevents one failure from stopping the entire run.
      fail-fast: false

      matrix:
        # Include newest and latest versions of Windows, plus Ubuntu (to make
        # sure that tests don't fail on a non-supported platform).
        os: [windows-latest, windows-2016, ubuntu-latest]

        # Stable does not support null safety yet.
        # Beta does not support structs by value or nested structs.
        sdk: [dev, main]

        # One SDK version is plenty on Ubuntu. It's a safety test. Similarly,
        # nobody is running the oldest Windows on leading-edge Dart releases.
        exclude:
          - os: ubuntu-latest
            sdk: main
          - os: windows-2016
            sdk: main

    steps:
      - name: Fetch sources
        uses: actions/checkout@v2

      - name: Set up Dart
        uses: dart-lang/setup-dart@v0.4
        with:
          sdk: ${{matrix.sdk}}

      - name: Print Dart SDK version
        run: dart --version

      - name: Install dependencies
        run: dart pub get

      - name: Verify formatting
        run: dart format --output=none --set-exit-if-changed .

      - name: Analyze project source
        run: dart analyze --fatal-warnings

      - name: Run tests
        run: dart test

name: Dart

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:
    runs-on: ${{matrix.os}}
    strategy:
      # We want to see the results on edge even if beta fails (and vice versa).
      # This prevents one failure from stopping the entire run.
      fail-fast: false

      matrix:
        # Include newest and latest versions of Windows, plus Ubuntu (to make
        # sure that tests don't fail on a non-supported platform).
        os: [windows-latest, windows-2016, ubuntu-latest]

        # Stable does not support null safety yet.
        sdk: [beta, dev, main]

        # One SDK version is plenty on Ubuntu. It's a safety test. Similarly,
        # nobody is running the oldest Windows on leading-edge Dart releases.
        exclude:
          - os: ubuntu-latest
            sdk: dev, main
          - os: windows-2016
            sdk: dev, main

    steps:
      - name: Fetch sources
        uses: actions/checkout@v2

      - name: Set up Dart
        uses: dart-lang/setup-dart@v0.4
        with:
          sdk: ${{matrix.sdk}}

      - name: Print Dart SDK version
        run: dart --version

      - name: Install dependencies
        run: dart pub get

      - name: Verify formatting
        run: dart format --output=none --set-exit-if-changed .

      - name: Analyze project source
        run: | 
          dart analyze --fatal-warnings
          dart analyze --fatal-warnings tool/winmd

      - name: Run tests
        run: dart test

Add beta back and run analyze on winmd folder
Add beta back and run analyze on winmd folder
