Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: added all ci workflow #3

Merged
merged 3 commits into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,11 @@ jobs:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
framework: [ 'net8.0', 'net7.0', 'net6.0' ]
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Install .NET Core SDK
- name: Install .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
Expand All @@ -64,13 +61,13 @@ jobs:
6.0.x

- name: Run tests
run: dotnet test -c Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage/${{ matrix.framework }}
run: dotnet test -c Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage
working-directory: ./tests/DomainVerifier.Tests

- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: tests/DomainVerifier.Tests/coverage/${{ matrix.framework }}/coverage.cobertura.xml
filename: tests/DomainVerifier.Tests/coverage/**/coverage.cobertura.xml
badge: true
fail_below_min: true
format: markdown
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/ci-extensions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: DomainVerifier.Extensions CI

on:
push:
branches: [ "main" ]
paths:
- 'DomainVerier.sln'
- 'src/DomainVerifier.Extensions/**'
- 'tests/DomainVerifier.Extensions.Tests/**'
- '**/ci-extensions.yml'
pull_request:
branches: [ "main" ]
paths:
- 'DomainVerier.sln'
- 'src/DomainVerifier.Extensions/**'
- 'tests/DomainVerifier.Extensions.Tests/**'
- '**/ci-extensions.yml'
workflow_dispatch:

jobs:
compile:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
dotnet-version: [ '8.0.x', '7.0.x', '6.0.x' ]
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Install .NET SDK 8.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Restore dependencies
run: dotnet restore
working-directory: ./src/DomainVerifier.Extensions

- name: Restore NuGet packages
run: dotnet build -c Release --no-restore
working-directory: ./src/DomainVerifier.Extensions


test-containers:
needs: compile
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Install .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
7.0.x
6.0.x

- name: Run tests
run: dotnet test -c Release --verbosity normal
working-directory: ./tests/DomainVerifier.Extensions.Tests