Bump Microsoft.Data.SqlClient from 5.1.0-preview2.22314.2 to 5.1.3 in /Src/Shared/Divstack.Company.Estimation.Tool.Shared.Infrastructure #682
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
name: Estimation Tool | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: '7.x' | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build | |
tests: | |
name: Tests | |
needs: build | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Valuations - Integrations Tests | |
uses: zyborg/dotnet-tests-report@v1 | |
with: | |
project_path: Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Application.IntegrationTests | |
report_name: Valuations | |
report_title: Integration Tests | |
gist_name: valuations_integrations_tests.md | |
gist_badge_label: 'Valuations - Integration Tests: %Counters_passed%/%Counters_total%' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Services - Integration Tests | |
uses: zyborg/dotnet-tests-report@v1 | |
with: | |
project_path: Src/Modules/Services/Divstack.Company.Estimation.Tool.Services.IntegrationsTests | |
report_name: Services | |
report_title: Integration Tests | |
gist_name: services_integrations_tests.md | |
gist_badge_label: 'Services - Integration Tests: %Counters_passed%/%Counters_total%' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Valuations - Unit Tests Report | |
uses: zyborg/dotnet-tests-report@v1 | |
with: | |
project_path: Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Domain.Tests | |
report_name: Valuations | |
gist_name: valuations_unit_tests.md | |
gist_badge_label: 'Valuations - Unit Tests: %Counters_passed%/%Counters_total%' | |
report_title: Unit Tests | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Inquiries - Unit Tests | |
uses: zyborg/dotnet-tests-report@v1 | |
with: | |
project_path: Src/Modules/Inquiries/Tests/Divstack.Company.Estimation.Tool.Inquiries.Domain.Tests | |
report_name: Inquiries | |
report_title: Unit Tests | |
gist_name: inquires_unit_tests.md | |
gist_badge_label: 'Inquiries - Unit Tests: %Counters_passed%/%Counters_total%' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Priorities - Integrations Tests | |
uses: zyborg/dotnet-tests-report@v1 | |
with: | |
project_path: Src/Modules/Priorities/Divstack.Company.Estimation.Tool.Priorities.IntegrationTests | |
report_name: Priorities | |
report_title: Integration Tests | |
gist_name: priorities_integrations_tests.md | |
gist_badge_label: 'Priorities - Integration Tests: %Counters_passed%/%Counters_total%' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Priorities - Integrations Tests | |
uses: zyborg/dotnet-tests-report@v1 | |
with: | |
project_path: Src/Modules/Priorities/Divstack.Company.Estimation.Tool.Priorities.Domain.Tests | |
report_name: Priorities | |
report_title: Unit Tests | |
gist_name: priorities_unit_tests.md | |
gist_badge_label: 'Priorities - Unit Tests: %Counters_passed%/%Counters_total%' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
sonar: | |
name: Sonar | |
runs-on: ubuntu-latest | |
needs: tests | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '7.x' # SDK Version to use. | |
- name: Install dotnet coverage | |
run: dotnet tool install --global dotnet-coverage | |
- name: Install sonarscanner-dotnet | |
run: dotnet tool install --global dotnet-sonarscanner | |
- name: Sonarscanner for dotnet | |
run: | | |
dotnet sonarscanner begin /v:1.${{ github.run_number }} /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.verbose=true /d:sonar.language=cs /o:"kamilbaczek" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$SONAR_TOKEN" /key:"kamilbaczek_Estimation-Tool" | |
dotnet build --no-incremental | |
dotnet-coverage collect 'dotnet test' -f xml -o 'coverage.xml' | |
dotnet sonarscanner end /d:sonar.login="$SONAR_TOKEN" | |
- name: Download a Build Artifact | |
uses: actions/[email protected] | |
security: | |
name: Security Scan | |
needs: sonar | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Run Snyk to check for vulnerabilities | |
uses: snyk/actions/dotnet@master | |
continue-on-error: true | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
args: --all-projects --detection-depth=10 | |
iaac: | |
needs: security | |
name: Deploy Code Azure - IAAC | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: pulumi/actions@v3 | |
with: | |
work-dir: Deployment/Infrastructure | |
command: up | |
stack-name: stage | |
env: | |
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | |
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }} | |
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }} | |
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }} | |
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }} | |
architecture-diagrams: | |
name: Architecture Diagrams | |
runs-on: ubuntu-latest | |
needs: sonar | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: Get changed Diagrams code files | |
id: getfile | |
run: | | |
echo "::set-output name=files::$(git diff --name-only HEAD^ HEAD | grep .puml | xargs)" | |
- name: Generate SVG Diagrams | |
uses: holowinski/plantuml-github-action@main | |
continue-on-error: true | |
with: | |
args: -v -tsvg ${{steps.getfile.outputs.files}} | |
- name: Push Local Changes | |
uses: stefanzweifel/[email protected] | |
continue-on-error: true | |
with: | |
commit_message: "Generate SVG files for PlantUML diagrams" | |
branch: ${{ github.head_ref }} |