Fix additional nuget sources for tests project

This commit is contained in:
Laura Hausmann 2024-01-20 20:51:35 +01:00
parent 42613d0a94
commit e1f020c254
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
4 changed files with 8 additions and 9 deletions

View file

@ -10,15 +10,9 @@ jobs:
steps:
- name: Clone repository
run: git clone https://iceshrimp.dev/iceshrimp/iceshrimp-rewrite.git --branch=${{ github.ref_name }} --depth=1 /iceshrimp
- name: Build the backend
- name: Run unit tests
run: |
cd /iceshrimp/Iceshrimp.Backend
dotnet restore
mkdir -p ./wwwroot/.vite/ && touch ./wwwroot/.vite/manifest.json
dotnet build
- name: Test the backend
run: |
cd /iceshrimp/Iceshrimp.Tests
cd /iceshrimp
dotnet test
build-and-push:
runs-on: docker

View file

@ -30,5 +30,5 @@ jobs:
dotnet build
- name: Test the backend
run: |
cd /iceshrimp/Iceshrimp.Tests
cd /iceshrimp
dotnet test

View file

@ -7,6 +7,7 @@
<InvariantGlobalization>true</InvariantGlobalization>
<VersionPrefix>2024.1</VersionPrefix>
<VersionSuffix>prealpha</VersionSuffix>
<RestoreAdditionalProjectSources>
https://iceshrimp.dev/api/packages/iceshrimp/nuget/index.json;
</RestoreAdditionalProjectSources>

View file

@ -5,6 +5,10 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RestoreAdditionalProjectSources>
https://iceshrimp.dev/api/packages/iceshrimp/nuget/index.json;
</RestoreAdditionalProjectSources>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>