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
8 changes: 4 additions & 4 deletions .github/workflows/push.yaml → .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
install: true

- name: Build test image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: ./
file: ${{ matrix.dockerfile }}
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Run tests
run: |
docker load -i /tmp/.builder.tar
docker run --rm frankenphp:${{ github.sha }}-builder "go test -race -v"
docker run --rm frankenphp:${{ github.sha }}-builder "sh -c 'go test -race -v ./... && cd caddy && go test -race -v ./...'"
push-image:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -86,11 +86,11 @@ jobs:
with:
install: true

- name: Setup QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Build and Push Image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: ./
file: ${{ matrix.dockerfile }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests.yaml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
install: true

- name: Build test image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: ./
file: ${{ matrix.dockerfile }}
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Run tests
run: |
docker load -i /tmp/.builder.tar
docker run --rm frankenphp:${{ github.sha }}-builder "go test -a -v"
docker run --rm frankenphp:${{ github.sha }}-builder "sh -c 'go test -race -v ./... && cd caddy && go test -race -v ./...'"
push-image:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -75,11 +75,11 @@ jobs:
with:
install: true

- name: Setup QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Build and Push Image
uses: docker/build-push-action@v3
- name: Build Image
uses: docker/build-push-action@v4
with:
context: ./
file: ${{ matrix.dockerfile }}
Expand Down
14 changes: 0 additions & 14 deletions caddy/caddy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,3 @@ func TestPHP(t *testing.T) {
}
wg.Wait()
}

func TestAutoHTTPtoHTTPSRedirectsImplicitPort(t *testing.T) {
tester := caddytest.NewTester(t)
tester.InitServer(`
{
http_port 9080
https_port 9443
}
localhost
respond "Yahaha! You found me!"
`, "caddyfile")

tester.AssertRedirect("http://localhost:9080/", "https://localhost/", http.StatusPermanentRedirect)
}