Skip to content

Commit

Permalink
adjust codeql script
Browse files Browse the repository at this point in the history
  • Loading branch information
KircMax committed Dec 2, 2023
1 parent 1ca1963 commit d5421ea
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 34 deletions.
69 changes: 35 additions & 34 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,40 +72,41 @@ 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.

- 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: 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"
./././scripts/buildscript.sh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Expand Down
1 change: 1 addition & 0 deletions scripts/buildscript.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dotnet build ./src/Webserver.API.csproj

0 comments on commit d5421ea

Please sign in to comment.