Fix additional nuget sources for tests project
This commit is contained in:
parent
42613d0a94
commit
e1f020c254
4 changed files with 8 additions and 9 deletions
|
@ -10,15 +10,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
run: git clone https://iceshrimp.dev/iceshrimp/iceshrimp-rewrite.git --branch=${{ github.ref_name }} --depth=1 /iceshrimp
|
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: |
|
run: |
|
||||||
cd /iceshrimp/Iceshrimp.Backend
|
cd /iceshrimp
|
||||||
dotnet restore
|
|
||||||
mkdir -p ./wwwroot/.vite/ && touch ./wwwroot/.vite/manifest.json
|
|
||||||
dotnet build
|
|
||||||
- name: Test the backend
|
|
||||||
run: |
|
|
||||||
cd /iceshrimp/Iceshrimp.Tests
|
|
||||||
dotnet test
|
dotnet test
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
|
@ -30,5 +30,5 @@ jobs:
|
||||||
dotnet build
|
dotnet build
|
||||||
- name: Test the backend
|
- name: Test the backend
|
||||||
run: |
|
run: |
|
||||||
cd /iceshrimp/Iceshrimp.Tests
|
cd /iceshrimp
|
||||||
dotnet test
|
dotnet test
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
<InvariantGlobalization>true</InvariantGlobalization>
|
<InvariantGlobalization>true</InvariantGlobalization>
|
||||||
<VersionPrefix>2024.1</VersionPrefix>
|
<VersionPrefix>2024.1</VersionPrefix>
|
||||||
<VersionSuffix>prealpha</VersionSuffix>
|
<VersionSuffix>prealpha</VersionSuffix>
|
||||||
|
|
||||||
<RestoreAdditionalProjectSources>
|
<RestoreAdditionalProjectSources>
|
||||||
https://iceshrimp.dev/api/packages/iceshrimp/nuget/index.json;
|
https://iceshrimp.dev/api/packages/iceshrimp/nuget/index.json;
|
||||||
</RestoreAdditionalProjectSources>
|
</RestoreAdditionalProjectSources>
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|
||||||
|
<RestoreAdditionalProjectSources>
|
||||||
|
https://iceshrimp.dev/api/packages/iceshrimp/nuget/index.json;
|
||||||
|
</RestoreAdditionalProjectSources>
|
||||||
|
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<IsTestProject>true</IsTestProject>
|
<IsTestProject>true</IsTestProject>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
Loading…
Add table
Reference in a new issue