Nightly Caddy #583
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.21.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 |