This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
test for github code coverage #102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: push | |
jobs: | |
set_status_in_progress: | |
name: set_status_in_progress | |
if: always() | |
uses: dpc-sdp/github-actions/.github/workflows/set_status.yml@main | |
secrets: inherit | |
with: | |
context: 'tide_build' | |
description: 'Tide Build running...' | |
state: 'pending' | |
target_url: ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }} | |
tide_build: | |
name: tide_build | |
secrets: inherit | |
uses: dpc-sdp/github-actions/.github/workflows/tide_build.yml@main | |
with: | |
module_build: true | |
runner: biggy-tide | |
phpunit_coverage: | |
name: PHPUnit Tests and Coverage | |
needs: tide_build | |
runs-on: biggy-tide | |
steps: | |
- name: Change to project directory | |
run: cd $GITHUB_WORKSPACE | |
- name: Debug information | |
run: | | |
pwd | |
ls -la | |
which phpdbg | |
which php | |
which phpunit | |
- name: Check PHP and phpdbg versions | |
run: | | |
php --version | |
phpdbg --version | |
- name: Run PHPUnit tests with coverage | |
run: phpdbg -qrr $(which phpunit) /home/runner/work/tide_search/tide_search/dpc-sdp --coverage-clover=coverage.xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
file: ./coverage.xml | |
fail_ci_if_error: true | |
export_config: | |
name: export_config | |
secrets: inherit | |
uses: dpc-sdp/github-actions/.github/workflows/export_config.yml@main | |
set_status: | |
name: set_status | |
needs: [tide_build] | |
if: always() | |
uses: dpc-sdp/github-actions/.github/workflows/set_status.yml@main | |
secrets: inherit | |
with: | |
context: 'tide_build' | |
description: 'Tide Build' | |
target_url: ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }} |