name: Tests on Windows

on:
  pull_request:
    branches:
      - master

jobs:
  build:

    runs-on: windows-latest

    steps:
      - uses: actions/checkout@v1

      - name: Set up JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8

      - name: Pull config
        run: git submodule update --init --recursive

      - name: Run tests with Gradle
        run: gradlew.bat build

        # GitHub Actions reset environment variables upon each step. Therefore, update the env and
        # run checks in a single step.
      - name: Install Dart & run smoke tests with Gradle
        run: >
          choco install dart-sdk --limitoutput
          & refreshenv
          & pub global activate protoc_plugin
          & cd tools\smoke-tests
          & gradlew.bat build --stacktrace

name: Tests on Windows

on:
  pull_request:
    branches:
      - master

jobs:
  build:

    runs-on: windows-latest

    steps:
      - uses: actions/checkout@v1

      - name: Set up JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8

      - name: Pull config
        run: git submodule update --init --recursive

        # GitHub Actions reset environment variables upon each step. Therefore, update the env and
        # run checks in a single step.
      - name: Run tests with Gradle
        run: >
          choco install dart-sdk --limitoutput
          & refreshenv
          & pub global activate protoc_plugin
          & gradlew.bat build
          & cd tools\smoke-tests
          & gradlew.bat build --stacktrace

Install Dart in time for the build
Install Dart in time for the build
