Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/auto_restore.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Auto-Restore on Dependabot PRs
name: Auto Sync Lock Files

on:
pull_request:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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

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

# Trigger build workflow ONLY after Auto Sync Lock Files workflow completes for dependabot NuGet branches
workflow_run:
workflows: [ "Auto Sync Lock Files" ]
types:
- completed
branches:
- 'dependabot/nuget/**'

jobs:
build:
runs-on: ubuntu-latest
if: |
!(github.actor == 'dependabot[bot]' && startsWith(github.head_ref, 'dependabot/nuget/')) &&
(github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success')

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.304
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
2 changes: 2 additions & 0 deletions Subgraphs/Authors/Data/Author.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ public class Author
public int Id { get; set; }

public string Name { get; set; } = default!;

public string? Bio { get; set; }
}