attempt to process esi in parallel #42
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 and validate go-esi as middleware | |
on: | |
- pull_request | |
jobs: | |
build-caddy-validator: | |
name: Check that go-esi build as caddy module | |
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: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22 | |
- | |
name: Checkout code | |
uses: actions/checkout@v3 | |
- | |
name: Install xcaddy | |
run: go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest | |
- | |
name: Build go-esi as caddy module | |
run: cd middleware/caddy && xcaddy build --with github.com/darkweak/go-esi/middleware/caddy=./ --with github.com/darkweak/go-esi@latest=../.. | |
- | |
name: Run Caddy tests | |
run: cd middleware/caddy && go test -v ./... | |
- | |
name: Run detached caddy | |
run: cd middleware/caddy && ./caddy run & | |
build-roadrunner-validator: | |
name: Check that go-esi build as roadrunner middleware | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- | |
name: Checkout code | |
uses: actions/checkout@v3 | |
- | |
name: Run Roadrunner tests | |
run: cd middleware/roadrunner && go test -v ./... |