Skip to content

Run required checks on push and PR #108

Run required checks on push and PR

Run required checks on push and PR #108

Workflow file for this run

---
name: Tests
on: [push, pull_request]
jobs:
test:
name: Test that caddy builds + Validate Caddyfile
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: build caddy - setup go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: build caddy - get xcaddy
run: go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest
- name: build caddy - xcaddy build
run: >
xcaddy build
--with github.com/caddyserver/forwardproxy@caddy2
--output proxy/caddy
- name: validate Caddyfile
run: make validate