Skip to content

Commit

Permalink
Update CI task
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed Apr 12, 2024
1 parent a538669 commit be1d19d
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,37 @@ on:
branches:
- master
pull_request:

branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the code
- uses: actions/checkout@v2

- uses: actions/checkout@v3
with:
submodules: recursive
# Install .NET Core SDK
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x

dotnet-version: 8.0.x
# Setup
- name: Start containers
run: docker-compose -f "submodules/btcpayserver/BTCPayServer.Tests/docker-compose.yml" up dev -d

run: docker-compose -f "submodules/btcpayserver/BTCPayServer.Tests/docker-compose.yml" up -d dev
- 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
cd submodules/btcpayserver
nohup dotnet run -c Release --project BTCPayServer &
while ! curl -s http://localhost:14142/api/v1/health > /dev/null; do
echo "Waiting for BTCPay Server to start..."
sleep 5
done
- name: Run tests
run: dotnet test

# Test
- name: Run fast tests
run: dotnet test --filter "Fast=Fast" --no-build -v n --logger "console;verbosity=normal"
- name: Run integration tests
run: dotnet test --filter "Integration=Integration" --no-build -v n --logger "console;verbosity=normal"
- name: Run Selenium tests
run: dotnet test --filter "Selenium=Selenium" --no-build -v n --logger "console;verbosity=normal"

0 comments on commit be1d19d

Please sign in to comment.