From 1e26a31e003d2dee415e79fa4915138dae25798e Mon Sep 17 00:00:00 2001 From: Mattias Karlsson Date: Wed, 8 Jul 2020 10:38:20 +0200 Subject: [PATCH] Add GitHub actions --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yml 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