-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (37 loc) · 1.2 KB
/
Copy pathci.yml
File metadata and controls
49 lines (37 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: ADCE CI & Security Hygiene
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
build-and-format:
name: Build & Code Formatting (.NET 10)
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore Dependencies
run: dotnet restore
- name: Build Solution & Projects (Release)
run: dotnet build --configuration Release --no-restore
- name: Run Unit Tests (.NET 10)
run: dotnet test --configuration Release --no-build --verbosity normal
- name: Verify Code Formatting (dotnet format)
run: dotnet format --verify-no-changes
security-and-path-hygiene:
name: Security, Secrets & Path Hygiene
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Run Repository Safety & Path Hygiene Checker
run: python scripts/check_repo_safety.py