Skip to content

Commit

Permalink
fixed dotnet-windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bezzad committed Aug 19, 2024
1 parent accd137 commit 151e00e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/dotnet-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,30 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- uses: actions/checkout@v3

- name: Setup .NET Core 8.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x

- name: Build solution
run: dotnet build -c Release --verbosity minimal

- name: Run tests
run: dotnet test -c Release --verbosity normal --no-build --no-restore
- name: Install Downloader Dependencies
run: dotnet restore ./src/Downloader/Downloader.csproj

- name: Publish
run: dotnet publish -c Release --no-build --no-restore
- name: Build Downloader Project
run: dotnet build ./src/Downloader/Downloader.csproj

- name: Install Downloader.DummyHttpServer Dependencies
run: dotnet restore ./src/Downloader.DummyHttpServer/Downloader.DummyHttpServer.csproj

- name: Build Downloader.DummyHttpServer Project
run: dotnet build ./src/Downloader.DummyHttpServer/Downloader.DummyHttpServer.csproj

- name: Install Downloader.Test Dependencies
run: dotnet restore ./src/Downloader.Test/Downloader.Test.csproj

- name: Build Downloader.Test Project
run: dotnet build ./src/Downloader.Test/Downloader.Test.csproj

- name: Test
run: dotnet test ./src/Downloader.Test/Downloader.Test.csproj --no-build --verbosity detailed
4 changes: 0 additions & 4 deletions .github/workflows/dotnet-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Windows x64

on: [ push ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: windows-latest
Expand Down

0 comments on commit 151e00e

Please sign in to comment.