From 466495e9198e4f7555f21ac33e3f86b92460d285 Mon Sep 17 00:00:00 2001 From: devhl-labs Date: Mon, 2 Jan 2023 10:25:05 -0500 Subject: [PATCH] added new pipeline to build standard (#14349) --- .../workflows/samples-dotnet-standard.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/samples-dotnet-standard.yaml diff --git a/.github/workflows/samples-dotnet-standard.yaml b/.github/workflows/samples-dotnet-standard.yaml new file mode 100644 index 000000000000..794042e21b00 --- /dev/null +++ b/.github/workflows/samples-dotnet-standard.yaml @@ -0,0 +1,30 @@ +name: Samples C# .Net Standard + +on: + push: + paths: + - 'samples/client/petstore/csharp-netcore/**netstandard**/' + pull_request: + paths: + - 'samples/client/petstore/csharp-netcore/**netstandard**/' +jobs: + build: + name: Build .Net projects + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + sample: + # clients + - samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-dotnet@v3.0.3 + with: + dotnet-version: 2.1.* + - name: Build + working-directory: ${{ matrix.sample }} + run: dotnet build Org.OpenAPITools.sln + - name: Test + working-directory: ${{ matrix.sample }} + run: dotnet test Org.OpenAPITools.sln