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:
Mohammed Al Sahaf
2024-04-19 00:40:12 +03:00
committed by GitHub
parent c6673ad4d8
commit 8f87c5d993
2 changed files with 7 additions and 1 deletions

View File

@@ -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: