Skip to content

Updated NuGet packages #364

Updated NuGet packages

Updated NuGet packages #364

name: build-and-test-all
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-test-all:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
defaults:
run:
working-directory: src
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Clean
run: dotnet clean ./Mews.Fiscalizations.All.sln --configuration Release && dotnet nuget locals all --clear
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
env:
german_api_key: ${{secrets.german_api_key}}
german_api_secret: ${{secrets.german_api_secret}}
german_admin_pin: ${{secrets.german_admin_pin}}
spanish_certificate_data: ${{secrets.spanish_certificate_data}}
spanish_certificate_password: ${{secrets.spanish_certificate_password}}
spanish_issuer_tax_number: ${{secrets.spanish_issuer_tax_number}}
spanish_receiver_tax_number: ${{secrets.spanish_receiver_tax_number}}
basque_araba_license: ${{secrets.basque_araba_license}}
basque_gipuzkoa_license: ${{secrets.basque_gipuzkoa_license}}
hungarian_login: ${{secrets.hungarian_login}}
hungarian_password: ${{secrets.hungarian_password}}
hungarian_signing_key: ${{secrets.hungarian_signing_key}}
hungarian_tax_payer_id: ${{secrets.hungarian_tax_payer_id}}
hungarian_encryption_key: ${{secrets.hungarian_encryption_key}}
italian_username: ${{secrets.italian_username}}
italian_password: ${{secrets.italian_password}}
austrian_user_id: ${{secrets.austrian_user_id}}
austrian_password: ${{secrets.austrian_password}}
run: dotnet test --no-restore --logger "trx;LogFileName=test-results-${{ runner.os }}.trx" || true
- name: Test Report
uses: dorny/test-reporter@v1.8.0
if: success() || failure()
with:
name: Mews.Fiscalizations.All-${{ runner.os }} Tests
path: "**/test-results-${{ runner.os }}.trx"
reporter: dotnet-trx
fail-on-error: true