Skip to content

Add lifecycle events and manually start hosted services on Anroid #35

Add lifecycle events and manually start hosted services on Anroid

Add lifecycle events and manually start hosted services on Anroid #35

Workflow file for this run

name: 'Test the app'
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the code
- uses: actions/checkout@v2
# Install .NET Core SDK
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Start containers
run: docker-compose -f "submodules/btcpayserver/BTCPayServer.Tests/docker-compose.yml" up dev -d
- name: Start BTCPay
run: cd submodules/btcpayserver && nohup dotnet run -c Release &
- name: Wait for BTCPay to start
run: |
while ! curl -s http://localhost:14142/a[ov1/health > /dev/null; do
echo "Waiting for BTCPay to start..."
sleep 1
done
- name: Run tests
run: dotnet test