Skip to content

Commit

Permalink
avoid docker-compose on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Aug 7, 2024
1 parent e3bb7a9 commit 2caa489
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,36 @@ jobs:
server:
runs-on: ubuntu-latest

services:
redis:
image: redis:alpine
ports:
- "6379:6379"

mongo:
image: mongo:3.6
ports:
- "27017:27017"

elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
ports:
- "9200:9200"
env:
discovery.type: single-node

defaults:
run:
working-directory: server

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: docker-compose
run: docker-compose -f ../.actions-docker-compose.yml up -d

- run: sudo apt-get update && sudo apt-get -y install libxml2-dev libxmlsec1-dev libxmlsec1-openssl

- name: pip install
Expand All @@ -47,7 +62,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '14.x'

Expand Down

0 comments on commit 2caa489

Please sign in to comment.