Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ThorstenThiel authored and Enterprize1 committed Oct 4, 2024
1 parent 02b9202 commit a0dcc2e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "CodeQL"

on:
push:
branches: [ "main", "*" ]
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
Expand Down Expand Up @@ -31,10 +31,18 @@ jobs:
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.x
9.x
- name: Restore
run: dotnet restore
working-directory: ./src
- name: Build
run: dotnet build --no-restore
working-directory: ./src
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
name: .NET

on:
- push
- pull_request
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
Expand Down

0 comments on commit a0dcc2e

Please sign in to comment.