Skip to content

Extensions CI

Extensions CI #8

Workflow file for this run

# 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: Extensions CI
on:
push:
branches: [ "main" ]
paths:
- 'DomainVerier.sln'
- 'Directory.Build.props'
- 'src/DomainVerifier.Extensions/**'
- 'tests/DomainVerifier.Extensions.Tests/**'
- '**/ci-extensions.yml'
pull_request:
branches: [ "main" ]
paths:
- 'DomainVerier.sln'
- 'Directory.Build.props'
- '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