Skip to content

Commit

Permalink
CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavdeep13 committed Jan 24, 2025
1 parent a26d898 commit 6ad77d7
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,32 +49,11 @@ jobs:
- name: Clone FIWARE repository
run: |
git clone https://github.com/N5GEH/n5geh.platform.git
# Step 7: Start FIWARE services
# Step 7: Start docker pull
- name: Start FIWARE services
working-directory: n5geh.platform/v2
run: docker compose up -d

# Step 8: Wait for FIWARE services to start
- name: Wait for FIWARE services to start
run: |
for i in {1..100}; do
curl -s http://localhost:1026/version && \
curl -s http://localhost:4041/iot/about && \
curl -s http://localhost:8668/version && break || sleep 5
done
# Step 9: Verify FIWARE services
- name: Verify FIWARE services
run: |
curl -X GET "http://localhost:1026/version"
curl -X GET "http://localhost:4041/iot/about"
curl -X GET "http://localhost:8668/version"
# Step 10: Print Docker logs for debugging
- name: Print Docker logs
working-directory: n5geh.platform/v2
run: docker compose logs
run: docker compose pull

test:
needs: setup_and_fiware
Expand All @@ -96,7 +75,12 @@ jobs:

# Step 8: start docker
- name: Checking Docker
run: docker ps
run: docker ps -a

# Step 7: Start FIWARE services
- name: Start FIWARE services
working-directory: n5geh.platform/v2
run: docker compose up -d

# Step 8: Wait for FIWARE services to start
- name: Wait for FIWARE services to start
Expand All @@ -106,7 +90,19 @@ jobs:
curl -s http://localhost:4041/iot/about && \
curl -s http://localhost:8668/version && break || sleep 5
done
# Step 9: Verify FIWARE services
- name: Verify FIWARE services
run: |
curl -X GET "http://localhost:1026/version"
curl -X GET "http://localhost:4041/iot/about"
curl -X GET "http://localhost:8668/version"
# Step 10: Print Docker logs for debugging
- name: Print Docker logs
working-directory: n5geh.platform/v2
run: docker compose logs

# Step 3: Install build tools
- name: Install build tools
run: |
Expand Down

0 comments on commit 6ad77d7

Please sign in to comment.