diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml new file mode 100644 index 00000000..ae4638f7 --- /dev/null +++ b/.github/workflows/pr-build.yml @@ -0,0 +1,33 @@ +name: PR build workflow + +on: + pull_request: + branches: + - master + +jobs: + build: + name: build + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: [windows-latest,ubuntu-latest] + version: [net452,netcoreapp2.0] + exclude: + - os: ubuntu-latest + version: net452 + + steps: + - name: Checkout repository + - uses: actions/checkout@v2 + + - name: Install dependencies + run: dotnet restore sdk/AWSXRayRecorder.sln --locked-mode + + - name: Build solution + run: dotnet build sdk/AWSXRayRecorder.sln --configuration Release --no-restore + + - name: Run tests + run: dotnet test sdk/test/UnitTests/bin/Release/${{matrix.version}}/AWSXRayRecorder.UnitTests.dll diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 21250b5b..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,23 +0,0 @@ -version: '1.0.{build}' -image: Visual Studio 2017 -init: - # Good practise, because Windows line endings are different from Unix/Linux ones - - cmd: git config --global core.autocrlf true -before_build: - # Display .NET Core version - - cmd: dotnet --version -build_script: - # output will be in ./src/bin/debug/netcoreapp1.1/publish - - cmd: dotnet restore sdk/AWSXRayRecorder.sln - - cmd: dotnet build sdk/AWSXRayRecorder.sln -clone_depth: 1 -test_script: - - cmd : dotnet test sdk/test/UnitTests -deploy: off -notifications: - - provider: Email - to: - - aws-xray-peryton@amazon.com - on_build_success: false - on_build_failure: true - on_build_status_changed: false