Skip to content

Commit

Permalink
test(macos): use httpbox docker image instead
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Oct 18, 2024
1 parent 2d504f0 commit 89ac1f3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:

- name: Install dependencies
run: |
brew install boost openssl rapidjson p7zip create-dmg cmake
brew install boost openssl rapidjson p7zip create-dmg cmake colima docker
- name: Build
run: |
Expand All @@ -83,16 +83,18 @@ jobs:
curl -L -o server.key "/~https://github.com/Chatterino/twitch-pubsub-server-test/raw/${{ env.TWITCH_PUBSUB_SERVER_TAG }}/cmd/server/server.key"
cd ..
- name: Cargo Install httpbox
run: |
cargo install --git /~https://github.com/kevinastone/httpbox --rev 89b971f
- name: Start Colima
run: colima start

- name: Test
timeout-minutes: 30
run: |
httpbox --port 9051 &
docker run -p 9051:9051 --detach ghcr.io/chatterino/chatterino2-test-httpbox:latest
cd ../pubsub-server-test
./server 127.0.0.1:9050 &
cd ../build-test
ctest --repeat until-pass:4 --output-on-failure
working-directory: build-test

- name: Stop Colima
run: colima stop

0 comments on commit 89ac1f3

Please sign in to comment.