Skip to content

Commit

Permalink
Merge pull request #7 from eddynaka/feature/adding-ci
Browse files Browse the repository at this point in the history
Adding CI
  • Loading branch information
cijothomas authored Jul 2, 2020
2 parents 17d202c + 52ed5ab commit 5eedf17
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/dotnet-core-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: .NET Linux

on:
pull_request:
branches: [ master ]

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

strategy:
matrix:
version: [netcoreapp3.1]

steps:
- uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test ${{ matrix.version }}
run: dotnet test **/bin/**/${{ matrix.version }}/*.Tests.dll
30 changes: 30 additions & 0 deletions .github/workflows/dotnet-core-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: .NET Windows

on:
pull_request:
branches: [ master ]

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

strategy:
matrix:
version: [net46,netcoreapp3.1]

steps:
- uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test ${{ matrix.version }}
run: dotnet test **\bin\**\${{ matrix.version }}\*Tests.dll
10 changes: 10 additions & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
<add key="MyGetV3" value="https://www.myget.org/F/opentelemetry/api/v3/index.json" />
<add key="Dotnet5" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources />
</configuration>
9 changes: 8 additions & 1 deletion opentelemetry-dotnet-contrib.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{2097345F-4
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenTelemetry.Exporter.Stackdriver.Tests", "test\OpenTelemetry.Exporter.Stackdriver.Tests\OpenTelemetry.Exporter.Stackdriver.Tests.csproj", "{39EF6946-9909-498D-9181-479DEF6CB4B7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenTelemetry.Instrumentation.Azure", "src\OpenTelemetry.Instrumentation.Azure\OpenTelemetry.Instrumentation.Azure.csproj", "{0E862C3A-89B1-4C3D-A2D5-579E38439C92}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenTelemetry.Instrumentation.Azure", "src\OpenTelemetry.Instrumentation.Azure\OpenTelemetry.Instrumentation.Azure.csproj", "{0E862C3A-89B1-4C3D-A2D5-579E38439C92}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution items", "Solution items", "{07AA0F83-22F6-4B8C-921D-029D3384CB17}"
ProjectSection(SolutionItems) = preProject
Directory.Build.props = Directory.Build.props
Directory.Build.targets = Directory.Build.targets
NuGet.config = NuGet.config
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down

0 comments on commit 5eedf17

Please sign in to comment.