2024-01-01 20:46:33 +01:00
|
|
|
name: Docker Compose Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2024-01-02 21:54:33 +01:00
|
|
|
paths:
|
2024-04-21 17:30:17 +02:00
|
|
|
- "src/**"
|
|
|
|
- "**.gradle"
|
|
|
|
- "!src/main/java/resources/messages*"
|
|
|
|
- "exampleYmlFiles/**"
|
|
|
|
- "Dockerfile"
|
|
|
|
- "Dockerfile**"
|
2024-01-02 22:52:51 +01:00
|
|
|
|
2024-01-01 20:46:33 +01:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-04-21 17:30:17 +02:00
|
|
|
- name: Checkout Repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Set up Java 17
|
|
|
|
uses: actions/setup-java@v4
|
|
|
|
with:
|
|
|
|
java-version: "17"
|
|
|
|
distribution: "adopt"
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
|
|
|
- name: Install Docker Compose
|
|
|
|
run: |
|
2024-08-03 11:29:34 +02:00
|
|
|
sudo curl -SL "https://github.com/docker/compose/releases/download/v2.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
|
|
|
sudo chmod +x /usr/local/bin/docker-compose
|
2024-04-21 17:30:17 +02:00
|
|
|
|
2024-05-27 23:30:25 +02:00
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: "3.7"
|
|
|
|
|
|
|
|
- name: Pip requirements
|
|
|
|
run: |
|
|
|
|
pip install -r ./cucumber/requirements.txt
|
|
|
|
|
2024-04-21 17:30:17 +02:00
|
|
|
- name: Run Docker Compose Tests
|
|
|
|
run: |
|
|
|
|
chmod +x ./test.sh
|
|
|
|
./test.sh
|