Skip to content
Merged
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
40 changes: 27 additions & 13 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,37 @@ on:
pull_request:
branches: [ main ]

env:
GO_VERSION: '1.25.4'

jobs:
test:
unit_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.25.4'

- name: Install Dependencies
run: go install

- name: Build
run: go build

- name: Run all tests
run: go run gotest.tools/gotestsum@latest -- -tags=router_test,integration,e2e ./...

go-version: ${{ env.GO_VERSION }}
- name: Run unit test
run: go run gotest.tools/gotestsum@latest -- -tags=router_test ./...
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Run integration
run: go run gotest.tools/gotestsum@latest -- -tags=integration ./integration/...
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Run e2e
run: go run gotest.tools/gotestsum@latest -- -tags=e2e ./e2e/...
5 changes: 0 additions & 5 deletions e2e/connectivity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ import (
)

func TestConnectivity(t *testing.T) {
if testing.Short() {
t.Skip("skipping e2e test in short mode")
}
t.Parallel()

// Use a specific subnet for this test to avoid conflicts
h := NewHarness(t)

Expand Down
10 changes: 0 additions & 10 deletions e2e/healthcheck_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ import (
)

func TestHealthcheckPing(t *testing.T) {
if testing.Short() {
t.Skip("skipping e2e test in short mode")
}
t.Parallel()

// Use a specific subnet for this test to avoid conflicts
h := NewHarness(t)

Expand Down Expand Up @@ -132,11 +127,6 @@ func TestHealthcheckPing(t *testing.T) {
}

func TestHealthcheckHTTP(t *testing.T) {
if testing.Short() {
t.Skip("skipping e2e test in short mode")
}
t.Parallel()

h := NewHarness(t)

// IPs
Expand Down
11 changes: 3 additions & 8 deletions e2e/recovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,14 @@ import (
)

func TestRecoveryExample(t *testing.T) {
if testing.Short() {
t.Skip("skipping e2e test in short mode")
}
t.Parallel()

h := NewHarness(t)

// Node names
alice := "alice"
bob := "bob"
charlie := "charlie"
eve := "eve"
vps := "vps"
eve := "eve"
vps := "vps"
nodeNames := []string{alice, bob, charlie, eve, vps}

// Generate keys
Expand Down Expand Up @@ -141,4 +136,4 @@ vps := "vps"
if err != nil {
t.Fatalf("Post-recovery ping failed: %v\nStdout: %s\nStderr: %s", err, stdout, stderr)
}
}
}
Loading