Skip to content

Commit

Permalink
Use GitHub workflow for CI on PRs and master builds (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
srprash committed Mar 7, 2022
1 parent 193d70d commit d124bfd
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Continuous Build

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build-test:
runs-on: windows-latest

env:
DOTNET_MULTILEVEL_LOOKUP: 1

strategy:
fail-fast: false
matrix:
version: [net452, netcoreapp2.0, netcoreapp3.1]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.0.x'

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'

- name: Install dependencies
run: dotnet restore sdk/AWSXRayRecorder.sln

- 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
--configuration Release
--no-build
--logger "console;verbosity=detailed"

0 comments on commit d124bfd

Please sign in to comment.