[ADD] Workflow: build on main push
Some checks failed
Build C# Library / build (push) Failing after 1m4s
Some checks failed
Build C# Library / build (push) Failing after 1m4s
This commit is contained in:
30
.gitea/workflows/BuildLibrary.yml
Normal file
30
.gitea/workflows/BuildLibrary.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Build C# Library
|
||||
|
||||
run-name: Build Library project
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup .NET SDK
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: '6.0.x'
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
|
||||
- name: Build library
|
||||
run: dotnet build --configuration Release
|
||||
|
||||
- name: Run unit tests
|
||||
run: dotnet test --configuration Release --no-build
|
Reference in New Issue
Block a user