Compare commits

...

3 Commits

Author SHA1 Message Date
ca55f34b8a CI: update cache-key
Some checks failed
.NET Tests / test (push) Failing after 1m17s
2025-04-02 09:51:06 +02:00
0e5ed29806 CI: use newer .NET version
Some checks failed
.NET Tests / test (push) Failing after 1m45s
2025-04-02 09:48:53 +02:00
075fab8658 add CI workflow
Some checks failed
.NET Tests / test (push) Failing after 1m34s
2025-04-02 09:43:16 +02:00

33
.gitea/workflows/CI.yaml Normal file
View File

@ -0,0 +1,33 @@
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: '9.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.nuget/packages
# Gitea Workflows don't support hashing yet :(
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