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

feat(ci) : Add e2e test for loadbalancer #2

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
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
37 changes: 37 additions & 0 deletions .github/workflows/e2e-loadbalancer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: E2E Test for LoadBalancer

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: set up testserver
run: |
cd testserver
make re

- name: Check the 8081
uses: jtalk/url-health-check-action@v3
with:
url: http://localhost:8081

- name: set up loadbalancer
run: |
make run

- name: Sleep for 3 seconds
run: sleep 3s
shell: bash

- name: Check the 8080
uses: jtalk/url-health-check-action@v3
with:
url: http://localhost:8080
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ ts-down:

.PHONY: run
run:
go run .
go run . &
Loading