Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,35 @@ jobs:
- run: ./scripts/prepare_pinning_certs.sh
- name: Install proxy for tests
run: sudo apt-get update && sudo apt-get install -y squid mkcert
- name: Set up Go for httpbun
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Install task for httpbun build
run: |
curl --silent --show-error --location 'https://github.com/go-task/task/releases/download/v3.29.1/task_linux_amd64.tar.gz' \
| sudo tar -xzf - -C /usr/local/bin task
- name: Start local httpbun
run: |
mkcert -install
mkcert -cert-file '/tmp/cert.pem' -key-file '/tmp/key.pem' httpbun.local
echo '127.0.0.1 httpbun.local' | sudo tee --append /etc/hosts
# Clone the cfug/httpbun repository and checkout the feat/dio branch
git clone --depth 1 --branch feat/dio https://github.com/cfug/httpbun.git /tmp/httpbun
# Build the httpbun binaries
cd /tmp/httpbun
task docker
# Build a local Docker image named httpbun:feat-dio from the repo
docker build -t httpbun:feat-dio /tmp/httpbun
# Run the built image instead of pulling from Docker Hub
docker run \
--name httpbun \
--detach \
--publish 443:443 \
--volume /tmp:/tmp:ro \
--env HTTPBUN_TLS_CERT=/tmp/cert.pem \
--env HTTPBUN_TLS_KEY=/tmp/key.pem \
--pull always \
sharat87/httpbun
httpbun:feat-dio
sleep 1
curl --fail --silent --show-error https://httpbun.local/any
- name: Use httpbun.local for tests
Expand Down
Loading