attempt to process esi in parallel #44
Workflow file for this run
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: Build container and validate lint/tests | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint-and-tests: | |
name: lint and static tests | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Add domain.com host to /etc/hosts | |
run: | | |
sudo echo "127.0.0.1 domain.com" | sudo tee -a /etc/hosts | |
- | |
name: checkout code | |
uses: actions/checkout@v3 | |
- | |
name: install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22 | |
- | |
name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
- | |
name: install xcaddy | |
run: go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest | |
- | |
name: build caddy binary | |
run: cd middleware/caddy && make build && cd - | |
- | |
name: run caddy binary as detached mode | |
run: cd middleware/caddy && make run & | |
- | |
name: tests | |
run: go test -v -race ./... |