diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 25871bf..6d36b1a 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -72,9 +72,40 @@ jobs: # If the Autobuild fails above, remove it and uncomment the following three lines. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh + - name: Build + strategy: + fail-fast: false + matrix: + os: [windows-latest] #to consider later , ubuntu-latest, macos-latest + runs-on: ${{ matrix.os }} + steps: + - name: Checkout sources + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Setup .NET Core 2.1 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: "2.1.x" + - name: Setup .NET Core 3.1 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: "3.1.x" + - name: Setup .NET 6.0 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: "6.0.x" + - name: Setup .NET 7.0 + uses: actions/setup-dotnet@v1 + with: + dotnet-version: "7.0.x" + - name: Setup .NET + uses: actions/setup-dotnet@v1 + - name: Run tests + run: dotnet build + #- run: | + #echo "Run, Build Application using script" + #./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2