Skip to content

Commit

Permalink
adjusting workflow to use the cli
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-ko committed Jan 12, 2024
1 parent 7387e72 commit 6c09332
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions .github/workflows/pr-only.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,36 +78,30 @@ jobs:
run: vendor/bin/phpunit --testsuite="Services Tests" --coverage-clover=coverage-service.xml

- name: Upload Service coverage report #step 3
run: ./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'service'${{ github.run_id }} -F service -f coverage-service.xml
run: ./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'service'-${{ github.run_id }} -F service -f coverage-service.xml

# - name: Run Controller Testsuite with Coverage
# run: vendor/bin/phpunit --testsuite="Controllers Tests" --coverage-clover=coverage-controller.xml
- name: Run Controller Testsuite with Coverage
run: vendor/bin/phpunit --testsuite="Controllers Tests" --coverage-clover=coverage-controller.xml

# - name: Upload Controller coverage report
# run: ./codecov -F controller -f coverage-controller.xml
- name: Upload Controller coverage report
run: ./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'controller'-${{ github.run_id }} -F controller -f coverage-service.xml

# - name: Run Unit Testsuite with Coverage
# run: vendor/bin/phpunit --testsuite="Unit Tests" --coverage-clover=coverage-unit.xml
- name: Run Unit Testsuite with Coverage
run: vendor/bin/phpunit --testsuite="Unit Tests" --coverage-clover=coverage-unit.xml

# - name: Upload unit coverage report
# run: ./codecov -F unit -f coverage-unit.xml
- name: Upload unit coverage report
run: ./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'unit'-${{ github.run_id }} -F unit -f coverage-unit.xml

# - name: Run Complete Testsuite with Coverage
# run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Run Complete Testsuite with Coverage
run: vendor/bin/phpunit --coverage-clover=coverage.xml

# - name: Upload overall coverage report
# run: ./codecov ${CODECOV_TOKEN} -F backend -f coverage.xml
- name: Upload overall coverage report
run: ./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'backend'-${{ github.run_id }} -F backend -f coverage.xml

# - name: Upload overall coverage report to another repo
# run: ./codecov -t ${CODECOV_DD_TOKEN} --url https://codecov.io -F backend -f coverage.xml

# - name: Javascript tests using Jest
# run: npm run test
- name: Javascript tests using Jest
run: npm run test

- name: Upload Javascript coverage
env: # Or as an environment variable
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
./codecov --verbose upload-process --fail-on-error -n 'javascript'${{ github.run_id }} -F 'uu;:1234567891011121314151617181920212222324252627282829201212:thisnameis:ridculouslylong-javascrip;but-thisisareally:longnamethatisgoing-tobe;supported-withmanymanycharacters;andthisflagname-istoolongto;dispaly:intheui1234567891011121314151617181920212222324252627282829201212:thisnameis#ridculouslylong-javascrip;but-thisisareally:longnamethatisgoing-tobe;supported-withmanymanycharacters;andthisflagname-istoolongto;dispaly:intheui' -f coverage/coverage-final.json
run: ./codecov --verbose upload-process --fail-on-error -t ${{ secrets.CODECOV_TOKEN }} -n 'javascript'-${{ github.run_id }} -F 'javascript' -f coverage/coverage-final.json


0 comments on commit 6c09332

Please sign in to comment.