mirror of
https://github.com/caddyserver/caddy.git
synced 2026-01-16 17:20:34 +00:00
cmd: Only validate config is proper JSON if config slice has data (#6250)
* cmd: fix error when running without config * ci: add smoke test
This commit is contained in:
committed by
GitHub
parent
c6673ad4d8
commit
8f87c5d993
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -101,6 +101,12 @@ jobs:
|
||||
run: |
|
||||
go build -tags nobdger -trimpath -ldflags="-w -s" -v
|
||||
|
||||
- name: Smoke test Caddy
|
||||
working-directory: ./cmd/caddy
|
||||
run: |
|
||||
./caddy start
|
||||
./caddy stop
|
||||
|
||||
- name: Publish Build Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user