Fix additional payment #586
Workflow file for this run
This file contains hidden or 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: Build and Test | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| pull_request: | |
| branches: | |
| - "master" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Initialize and update submodules | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Clean project | |
| run: dotnet clean | |
| - name: Build projects | |
| run: dotnet build -maxcpucount:1 -c Release --no-restore | |
| - name: Deterministic build check | |
| run: | | |
| dotnet tool install --global dotnet-validate --version 0.0.1-preview.537 | |
| dotnet pack Plugins/Monero/BTCPayServer.Plugins.Monero.csproj -c Release /p:PackageVersion=1 --no-build -o nuget-packages | |
| dotnet validate package local nuget-packages/BTCPayServer.Plugins.Monero.1.0.0.nupkg | |
| - name: Run unit tests | |
| run: dotnet test BTCPayServer.Plugins.UnitTests -c Release --no-build -v n /p:CollectCoverage=true /p:CoverletOutput=../coverage/unit/ /p:CoverletOutputFormat=cobertura /p:Include="[BTCPayServer.Plugins.Monero*]*" | |
| - name: Run integration tests | |
| run: | | |
| export BTCPAY_NOTIFY_HOST=tests | |
| docker compose -f BTCPayServer.Plugins.IntegrationTests/docker-compose.yml up --abort-on-container-exit --exit-code-from tests tests | |
| - name: Cleanup Docker containers | |
| if: always() | |
| run: docker compose -f BTCPayServer.Plugins.IntegrationTests/docker-compose.yml down -v | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: coverage-report | |
| path: coverage/merged/Cobertura.xml | |
| - name: Upload NuGet package | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: nuget-package-${{ github.sha }} | |
| path: nuget-packages/BTCPayServer.Plugins.Monero.1.0.0.nupkg |