-
-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated ci-cd config for Github actions
- Loading branch information
Showing
2 changed files
with
38 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,28 @@ | ||
name: Ubuntu x64 | ||
|
||
on: [push] | ||
on: [ push ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- 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 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 | ||
- 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: Publish | ||
run: dotnet publish -c Release --no-build --no-restore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,28 @@ | ||
name: Windows x64 | ||
|
||
on: [push] | ||
on: [ push ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- 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 Downloader Project | ||
run: dotnet build ./src/Downloader/Downloader.csproj | ||
|
||
- name: Install Downloader.DummyHttpServer Dependencies | ||
run: dotnet restore ./src/Downloader.DummyHttpServer/Downloader.DummyHttpServer.csproj | ||
- name: Checkout code | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build Downloader.DummyHttpServer Project | ||
run: dotnet build ./src/Downloader.DummyHttpServer/Downloader.DummyHttpServer.csproj | ||
- name: Setup .NET Core 8.0 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Install Downloader.Test Dependencies | ||
run: dotnet restore ./src/Downloader.Test/Downloader.Test.csproj | ||
- name: Build solution | ||
run: dotnet build -c Release --verbosity minimal | ||
|
||
- name: Build Downloader.Test Project | ||
run: dotnet build ./src/Downloader.Test/Downloader.Test.csproj | ||
- name: Run tests | ||
run: dotnet test -c Release --verbosity normal --no-build --no-restore | ||
|
||
- 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 |