Keypad progress #31
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: '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 | |