Skip to content

Commit

Permalink
tests: preinstall GitHubActionsTestLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Feb 22, 2022
1 parent 55115a9 commit d6893e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:
container: ghcr.io/sitkoru/actions-container
steps:
- uses: actions/checkout@v2
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests
run: dotnet test --logger GitHubActions tests/Sitko.Core.App.Tests/Sitko.Core.App.Tests.csproj

Expand All @@ -46,8 +44,6 @@ jobs:
run: |
npm ci
npm run prod
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests
run: dotnet test --logger GitHubActions tests/Sitko.Core.App.Blazor.Tests/Sitko.Core.App.Blazor.Tests.csproj

Expand All @@ -56,8 +52,6 @@ jobs:
container: ghcr.io/sitkoru/actions-container
steps:
- uses: actions/checkout@v2
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests
run: dotnet test --logger GitHubActions tests/Sitko.Core.Grpc.Client.Tests/Sitko.Core.Grpc.Client.Tests.csproj

Expand All @@ -66,8 +60,6 @@ jobs:
container: ghcr.io/sitkoru/actions-container
steps:
- uses: actions/checkout@v2
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests
run: dotnet test --logger GitHubActions tests/Sitko.Core.ImgProxy.Tests/Sitko.Core.ImgProxy.Tests.csproj

Expand All @@ -82,8 +74,6 @@ jobs:
run: |
apt-get update
apt-get install -y google-chrome-stable
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests
run: dotnet test --logger GitHubActions tests/Sitko.Core.Pdf.Tests/Sitko.Core.Pdf.Tests.csproj

Expand All @@ -98,8 +88,6 @@ jobs:
image: nats-streaming:latest
steps:
- uses: actions/checkout@v2
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests Sitko.Core.Queue
run: dotnet test --logger GitHubActions tests/Sitko.Core.Queue.Test/Sitko.Core.Queue.Tests.csproj
- name: Run tests Sitko.Core.Queue.Nats
Expand All @@ -121,8 +109,6 @@ jobs:
POSTGRES_HOST_AUTH_METHOD: trust
steps:
- uses: actions/checkout@v2
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run EF Core tests
run: dotnet test --logger GitHubActions tests/Sitko.Core.Repository.EntityFrameworkCore.Tests/Sitko.Core.Repository.EntityFrameworkCore.Tests.csproj
- name: Run Remote tests
Expand All @@ -138,8 +124,6 @@ jobs:
image: titpetric/sonyflake
steps:
- uses: actions/checkout@v2
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests
run: dotnet test --logger GitHubActions tests/Sitko.Core.SonyFlake.Tests/Sitko.Core.SonyFlake.Tests.csproj

Expand All @@ -165,8 +149,6 @@ jobs:
POSTGRES_HOST_AUTH_METHOD: trust
steps:
- uses: actions/checkout@v2
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Sitko.Core.Storage.FileSystem
run: dotnet test --logger GitHubActions tests/Sitko.Core.Storage.FileSystem.Tests/Sitko.Core.Storage.FileSystem.Tests.csproj
- name: Sitko.Core.Storage.S3
Expand Down Expand Up @@ -199,8 +181,6 @@ jobs:
- name: Start Vault
run: |
vault server -dev -dev-root-token-id="${VAULT__TOKEN}" &
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests
run: dotnet test --logger GitHubActions tests/Sitko.Core.Configuration.Vault.Tests/Sitko.Core.Configuration.Vault.Tests.csproj

Expand Down
3 changes: 3 additions & 0 deletions tests/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@
<ItemGroup>
<ProjectReference Include="..\..\src\Sitko.Core.Xunit\Sitko.Core.Xunit.csproj"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="GitHubActionsTestLogger" Version="1.3.0" />
</ItemGroup>
</Project>

0 comments on commit d6893e7

Please sign in to comment.