Skip to content

Commit

Permalink
Try httpbin as service
Browse files Browse the repository at this point in the history
  • Loading branch information
OzzyCzech committed Jun 19, 2023
1 parent e3c4145 commit c1cbfb8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/actions/httpbin/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ runs:
- name: Run HTTPBin
uses: docker://kennethreitz/httpbin
with:
args: -p 8000:80
args: -p 80:80
32 changes: 19 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,35 @@ on:

jobs:

# tests:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: ./.github/actions/prepare
# - uses: ./.github/actions/build
# - name: make check
# run: make check
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/prepare
- uses: ./.github/actions/build
- name: make check
run: make check

integration:
runs-on: ubuntu-latest
env:
HTTPBIN_URL: "http://127.0.0.1:8000"
HTTPBIN_URL: "http://127.0.0.1:80"
services:
httpbin:
image: kennethreitz/httpbin
ports:
- 80:80
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/prepare
- uses: ./.github/actions/build
- uses: ./.github/actions/httpbin
#- uses: ./.github/actions/httpbin
- name: make integration
run: |
php -r "echo 'HTTPBIN_URL=' . getenv('HTTPBIN_URL');"
make -C integration-tests check
cat integration-tests/test-suite.log
curl http://127.0.0.1:80/get
# php -r "echo 'HTTPBIN_URL=' . getenv('HTTPBIN_URL');"
# make -C integration-tests check
# cat integration-tests/test-suite.log

# try:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit c1cbfb8

Please sign in to comment.