Skip to content

Commit

Permalink
updated indentation in pull-request.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
VanshikaSabharwal committed Nov 8, 2024
1 parent f54dcf2 commit b93aed6
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,43 +254,43 @@ jobs:
run: graphql-inspector validate './src/GraphQl/**/*.ts' './talawa-api/schema.graphql'

Docker-Start-Check:
name: Check if Talawa Admin app starts in Docker
runs-on: ubuntu-latest
needs: [Code-Quality-Checks]
steps:
- name: Checkout the Repository
uses: actions/checkout@v4

- name: Set up Docker
uses: docker/setup-buildx-action@v3

- name: Build Docker image
run: |
docker build -t talawa-admin-app .
- name: Run Docker Container
run: |
docker run -d --name talawa-admin-app-container -p 8080:8080 talawa-admin-app
- name: Check if Talawa Admin App is running
run: |
timeout=60
while ! nc -z localhost 8080 && [ $timeout -gt 0 ]; do
sleep 1
timeout=$((timeout-1))
done
if [ $timeout -eq 0 ]; then
echo "Timeout waiting for application to start"
exit 1
fi
curl --fail --silent http://localhost:8080/index.html || exit 1
- name: Stop Docker Container
if: always()
run: |
docker stop talawa-admin-app-container
docker rm talawa-admin-app-container
name: Check if Talawa Admin app starts in Docker
runs-on: ubuntu-latest
needs: [Code-Quality-Checks]
steps:
- name: Checkout the Repository
uses: actions/checkout@v4

- name: Set up Docker
uses: docker/setup-buildx-action@v3

- name: Build Docker image
run: |
docker build -t talawa-admin-app .
- name: Run Docker Container
run: |
docker run -d --name talawa-admin-app-container -p 8080:8080 talawa-admin-app
- name: Check if Talawa Admin App is running
run: |
timeout=60
while ! nc -z localhost 8080 && [ $timeout -gt 0 ]; do
sleep 1
timeout=$((timeout-1))
done
if [ $timeout -eq 0 ]; then
echo "Timeout waiting for application to start"
exit 1
fi
curl --fail --silent http://localhost:8080/index.html || exit 1
- name: Stop Docker Container
if: always()
run: |
docker stop talawa-admin-app-container
docker rm talawa-admin-app-container

Check-Target-Branch:
if: ${{ github.actor != 'dependabot[bot]' }}
Expand All @@ -301,4 +301,4 @@ jobs:
if: github.event.pull_request.base.ref != 'develop'
run: |
echo "Error: Pull request target branch must be 'develop'. Please refer PR_GUIDELINES.md"
exit 1
exit 1

0 comments on commit b93aed6

Please sign in to comment.