Skip to content

Update dotnet-build-and-test.yml #2

Update dotnet-build-and-test.yml

Update dotnet-build-and-test.yml #2

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET Build & Test
on:
push:
branches: [ "main", "stage", "develop" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: './EtiveMor.OpenImoCiiCalculator'
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
working-directory: ${{env.working-directory}}
run: dotnet restore
- name: Build
working-directory: ${{env.working-directory}}
run: dotnet build --no-restore
- name: Test
working-directory: ${{env.working-directory}}
run: dotnet test --no-build --verbosity normal