Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ jobs:
with:
context: .
push: false
tags: portal:latest
tags: portal:latest
46 changes: 46 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: E2E Tests

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

jobs:
e2e-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "stable"
check-latest: true

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "24"

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
--no-install-recommends \
nodejs \
npm \
brotli \
make \
binaryen
# Configure hosts for E2E test
echo "127.0.0.1 test-app.localhost" | sudo tee -a /etc/hosts

- name: Run E2E Tests
run: |
./tests/e2e/run-e2e.sh
- name: Upload Screenshots Artifact
uses: actions/upload-artifact@v4
with:
name: portal-screenshots
path: artifacts/screenshots/
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ profile.cov
# Docker Compose Override
docker-compose.override.yml
docker-compose.override.yaml
tests/e2e/test-app/test-app
tests/e2e/test-app/app.log
artifacts/screenshots/
8 changes: 0 additions & 8 deletions cmd/portal-tunnel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,6 @@ func runServiceTunnel(ctx context.Context, relayDir *RelayDirectory, service *Se
_ = listener.Close()
}()

log.Info().Str("service", serviceName).Msg("")
log.Info().Str("service", serviceName).Msg("Access via:")
log.Info().Str("service", serviceName).Msgf("- Name: /peer/%s", serviceName)
log.Info().Str("service", serviceName).Msgf("- Lease ID: /peer/%s", leaseID)
log.Info().Str("service", serviceName).Msgf("- Example: http://%s/peer/%s", bootstrapServers[0], serviceName)

log.Info().Str("service", serviceName).Msg("")

connCount := 0
var connWG sync.WaitGroup
defer connWG.Wait()
Expand Down
15 changes: 15 additions & 0 deletions cmd/relay-server/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/e2e/puppeteer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
Loading
Loading