Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #7

Merged
merged 4 commits into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,9 @@ jobs:
run: dotnet build --no-restore

# Run the project to check if it can start up
- name: Run the project
run: dotnet run --project SimpleWebAppReact.csproj --urls=http://localhost:5431 &

# Wait a bit to see if the app runs (10 seconds)
- name: Wait
run: sleep 10

# Check if localhost is running (basic test to see if it started)
- name: Check if localhost responds
run: curl --fail http://localhost:5431 || exit 1
- name: Check if server starts
run: |
dotnet run --project SimpleWebAppReact.csproj &
echo $! > server.pid
sleep 10
kill $(cat server.pid) || echo "Server already stopped"
Loading