Skip to content

Commit 967f326

Browse files
committed
piplines
1 parent 48f1f23 commit 967f326

22 files changed

Lines changed: 1031 additions & 231 deletions

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
push:
7+
branches: [ main ]
8+
9+
env:
10+
DOTNET_VERSION: '9.0.x'
11+
SOLUTION_FILE: GraphRag.slnx
12+
13+
jobs:
14+
build:
15+
name: Build and Test
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v5
21+
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v4
24+
with:
25+
dotnet-version: ${{ env.DOTNET_VERSION }}
26+
27+
- name: Restore dependencies
28+
run: dotnet restore ${{ env.SOLUTION_FILE }}
29+
30+
- name: Build
31+
run: dotnet build ${{ env.SOLUTION_FILE }} --configuration Release --no-restore
32+
33+
- name: Test
34+
run: dotnet test ${{ env.SOLUTION_FILE }} --configuration Release --no-build --verbosity normal --collect:"XPlat Code Coverage"
35+
36+
- name: Upload coverage reports to Codecov
37+
if: always()
38+
uses: codecov/codecov-action@v5
39+
with:
40+
token: ${{ secrets.CODECOV_TOKEN }}
41+
files: ./**/coverage.cobertura.xml
42+
fail_ci_if_error: false
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
schedule:
9+
- cron: '0 0 * * 1'
10+
11+
env:
12+
DOTNET_VERSION: '9.0.x'
13+
SOLUTION_FILE: GraphRag.slnx
14+
15+
jobs:
16+
analyze:
17+
name: Analyze
18+
runs-on: ubuntu-latest
19+
permissions:
20+
actions: read
21+
contents: read
22+
security-events: write
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
language: [ 'csharp' ]
28+
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v5
32+
33+
- name: Setup .NET
34+
uses: actions/setup-dotnet@v4
35+
with:
36+
dotnet-version: ${{ env.DOTNET_VERSION }}
37+
38+
- name: Initialize CodeQL
39+
uses: github/codeql-action/init@v4
40+
with:
41+
languages: ${{ matrix.language }}
42+
43+
- name: Restore dependencies
44+
run: dotnet restore ${{ env.SOLUTION_FILE }}
45+
46+
- name: Build
47+
run: dotnet build ${{ env.SOLUTION_FILE }} --configuration Release --no-restore
48+
49+
- name: Perform CodeQL Analysis
50+
uses: github/codeql-action/analyze@v4

.github/workflows/dotnet-integration.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/gh-pages.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/issues-autoresolve.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)