Skip to content

Commit

Permalink
updated dotnet-ubuntu.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
bezzad committed Aug 19, 2024
1 parent 0cf20af commit 143d4c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/dotnet-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- uses: actions/checkout@v3
uses: actions/checkout@v3

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

- name: Install Downloader Dependencies
run: dotnet restore ./src/Downloader/Downloader.csproj
- name: Build solution
run: dotnet build -c Release --verbosity minimal

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

- 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
- name: Publish
run: dotnet publish -c Release --no-build --no-restore
6 changes: 5 additions & 1 deletion .github/workflows/dotnet-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ name: Windows x64

on: [ push ]

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

jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
- uses: actions/checkout@v3
uses: actions/checkout@v3

- name: Setup .NET Core 8.0
uses: actions/setup-dotnet@v3
Expand Down

0 comments on commit 143d4c7

Please sign in to comment.