Skip to content

Commit

Permalink
CI fix: install task, run httpbin service for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit Petric committed Sep 13, 2024
1 parent 5cca3d9 commit d485f5c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Setup CI Tooling
uses: shrink/actions-docker-extract@v3
with:
image: tykio/ci-tools:latest
path: /usr/local/bin/task
destination: /usr/local/bin

- name: Install Dependencies and basic hygiene test
id: hygiene
run: |
Expand Down Expand Up @@ -66,11 +73,9 @@ jobs:
- name: Fetch base branch
if: ${{ github.event_name == 'pull_request' }}
run: git fetch origin ${{ github.base_ref }}
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: ${{ matrix.redis-version }}

- name: Start test services
run: task services:up

- name: Cache
uses: actions/cache@v2
Expand All @@ -88,6 +93,9 @@ jobs:
echo "log=$(sed -ze 's/%/%25/g;s/\n/%0A/g' test.log)" >> $GITHUB_OUTPUT
exit $result_code
- name: Stop test services
run: task services:down

- name: Notify status
if: ${{ failure() && github.event.pull_request.number }}
uses: peter-evans/create-or-update-comment@v1
Expand Down
13 changes: 6 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
name: tyk-dev

include:
- docker/services/redis.yml
- docker/services/httpbin.yml

services:
tyk:
image: internal/tyk-gateway
Expand All @@ -8,13 +14,6 @@ services:
volumes:
- ./tyk.conf.example:/opt/tyk-gateway/tyk.conf

redis:
image: redis:4.0-alpine
networks: [ proxy ]
ports:
- 6379:6379
command: redis-server --appendonly yes

networks:
proxy:
name: proxy
Expand Down

0 comments on commit d485f5c

Please sign in to comment.