Clean up sse handler; add hotreload example #23
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: ci | |
on: | |
push: | |
branches: [ "master" ] | |
tags: [ "v**" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
- run: go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest | |
- uses: gacts/install-hurl@v1 | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test -v ./... | |
- name: Hurl Tests | |
run: ./integration/run.sh | |
- run: go build -o xtemplate ./cmd | |
- run: xcaddy build --with github.com/infogulch/xtemplate/caddy=./caddy | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: xtemplate | |
path: xtemplate |