Skip to content

Commit

Permalink
Merge pull request #2 from sandialabs/AddBuildWorkflow
Browse files Browse the repository at this point in the history
Creates dotnet.yml build workflow
  • Loading branch information
rheone authored Jan 7, 2025
2 parents 20bec4b + 6f2713d commit 27c1e3f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# .NET project build workflow

name: .NET

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore dotnet tools
run: dotnet tool restore
- name: Restore dependencies
run: dotnet restore src
- name: Build
run: dotnet build src --no-restore
- name: Test
run: dotnet test src --no-build --verbosity normal

0 comments on commit 27c1e3f

Please sign in to comment.