Skip to content

Nightly Caddy

Nightly Caddy #619

Workflow file for this run

name: Nightly Caddy
on:
pull_request:
paths:
- ".github/workflows/nightly-caddy.yml"
schedule:
- cron: "0 4 * * *"
workflow_dispatch:
inputs:
caddyversion:
description: "caddy version (branch, tag or commit)"
required: true
jobs:
nightly-caddy:
name: "Nightly Caddy (caddy version: ${{ github.event.inputs.caddyversion || 'master' }})"
strategy:
matrix:
go-version: [1.22.x]
os: [ubuntu-latest]
xcaddy-version: [v0.3.5]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 0 #for better blame info
- name: Install xcaddy
run: go install github.com/caddyserver/xcaddy/cmd/xcaddy@${{ matrix.xcaddy-version }}
- name: Build caddy
run: CADDY_VERSION=${{ github.event.inputs.caddyversion || 'master' }} go run mage.go buildCaddyLinux
- name: Run e2e tests
run: go run mage.go e2e