diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..eceffd1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build +on: + pull_request: + push: + branches: + - master +jobs: + build: + name: Build + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [windows-latest, ubuntu-latest, macos-latest] + steps: + - name: Get the sources + uses: actions/checkout@v2 + + - name: Fetch all history for all tags and branches + run: git fetch --prune --unshallow + + - name: Install .NET Core SDK 3.1.301 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '3.1.301' + + - name: Build KuduSync.NET + run: | + dotnet build + + - name: Test + if: matrix.os == 'windows-latest' + shell: cmd + run: .\test.cmd