Skip to content

Commit 1f27574

Browse files
Copilotalisonlomaka
andcommitted
Add GitHub Actions build workflow to fix broken Build badge
Co-authored-by: alisonlomaka <98775110+alisonlomaka@users.noreply.github.com>
1 parent 95167f0 commit 1f27574

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: 8.0.x
20+
21+
- name: Restore dependencies
22+
run: dotnet restore Microsoft.Sbom.sln
23+
24+
- name: Build
25+
run: dotnet build Microsoft.Sbom.sln --no-restore --configuration Release
26+
27+
- name: Test
28+
run: dotnet test Microsoft.Sbom.sln --no-build --configuration Release --verbosity normal
29+
continue-on-error: false

0 commit comments

Comments
 (0)