Skip to content

Sync repo to org template (#146) #635

Sync repo to org template (#146)

Sync repo to org template (#146) #635

Workflow file for this run

name: Build
on:
push:
branches: [main*]
workflow_dispatch:
jobs:
build:
if: github.event_name != 'pull_request'
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
dotnet-version: '9.0.x'
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --no-restore
# Pushes to a main* branch other than main itself get no other test run: sonar_push.yml is scoped to main alone.
- name: Test
run: dotnet test --no-build