This commit is contained in:
parent
aa1f06e51a
commit
075fab8658
32
.gitea/workflows/CI.yaml
Normal file
32
.gitea/workflows/CI.yaml
Normal file
@ -0,0 +1,32 @@
|
||||
name: .NET Tests
|
||||
on:
|
||||
[push]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: '8.0.x'
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.nuget/packages
|
||||
key: nuget-${{ runner.os }}-${{ hashFiles('**/packages.lock.json') }}
|
||||
restore-keys: |
|
||||
nuget-${{ runner.os }}-
|
||||
|
||||
- name: Build application
|
||||
run: dotnet build --no-restore
|
||||
|
||||
- name: Run tests
|
||||
run: dotnet test --no-build --verbosity normal
|
||||
Loading…
x
Reference in New Issue
Block a user