Skip to content

Commit

Permalink
Revert "Update push.yml (#2900)" (#2904)
Browse files Browse the repository at this point in the history
This reverts commit 7671150.
  • Loading branch information
palisadoes authored Jan 25, 2025
1 parent 7671150 commit 44b7f73
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,21 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

# Create .env file for Talawa API testing environment
- name: Create .env file for Talawa API testing environment
run: cp ./envFiles/.env.ci ./.env
# Setup Node.js
- name: Setup Node.js
uses: actions/setup-node@v3

# Build Talawa API compose testing environment
- name: Build Talawa API compose testing environment
run: docker compose build
# Setup pnpm
- name: Setup pnpm
uses: pnpm/action-setup@v4

# Run tests
- name: Run tests
run: docker compose up --exit-code-from api

# Copy coverage from container
- name: Copy coverage from container
# Install dependencies and run tests
- name: Run Tests and Upload Coverage to Codecov
run: |
CONTAINER_ID=$(docker ps -aq --filter "ancestor=talawa-api")
docker cp $CONTAINER_ID:/home/talawa/api/coverage ./coverage
pnpm install --frozen-lockfile
pnpm run test
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

# Upload coverage to Codecov
- name: Upload Coverage to Codecov
Expand All @@ -39,10 +37,3 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
files: ./coverage/lcov.info

# Test acceptable level of code coverage
- name: Test acceptable level of code coverage
uses: VeryGoodOpenSource/very_good_coverage@v2
with:
path: "./coverage/lcov.info"
min_coverage: 39.0

0 comments on commit 44b7f73

Please sign in to comment.