diff --git a/.github/workflows/examples-sanity.yml b/.github/workflows/examples-sanity.yml deleted file mode 100644 index 2907a3cf71..0000000000 --- a/.github/workflows/examples-sanity.yml +++ /dev/null @@ -1,29 +0,0 @@ -# Syntax: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions -# .NET CLI: https://docs.microsoft.com/dotnet/core/tools/ -# Description: The purpose of this build is to verify that our example projects compile. - -name: Examples Sanity Build - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - build-test: - - runs-on: windows-latest - - steps: - - uses: actions/checkout@v2 - - - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 6.0.x - - - name: Install dependencies - run: dotnet restore ./examples/Examples.sln - - - name: Build - run: dotnet build ./examples/Examples.sln diff --git a/.github/workflows/sanity.yml b/.github/workflows/sanity.yml new file mode 100644 index 0000000000..729062babc --- /dev/null +++ b/.github/workflows/sanity.yml @@ -0,0 +1,42 @@ +# Syntax: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions +# .NET CLI: https://docs.microsoft.com/dotnet/core/tools/ +# Description: The purpose of this workflow is to verify that every solution in the repo successfully compiles. + +name: Sanity Build + +on: + workflow_dispatch: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + sanity-build: + + runs-on: windows-latest + + strategy: + fail-fast: false + matrix: + solution: [ + ./NETCORE/ApplicationInsights.AspNetCore.sln, + ./Everything.sln, + ./examples/Examples.sln, + ./IntegrationTests.sln, + ./LOGGING/Logging.sln, + ./BASE/Microsoft.ApplicationInsights.sln, + ./WEB/Src/Microsoft.ApplicationInsights.Web.sln] + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.x + + - name: Restore + run: dotnet restore ${{ matrix.solution }} + + - name: Build + run: dotnet build ${{ matrix.solution }}