|
31 | 31 | run: wget https://codecov.io/bash -O newcodecov
|
32 | 32 | - name: Detect changes to manually verify
|
33 | 33 | run: diff newcodecov .github/jobs/uploadcodecov.sh
|
| 34 | + - name: Run the unit tests |
| 35 | + run: .github/jobs/unit-tests.sh ${{ matrix.PHPVERSION }} ${{ matrix.TEST }} |
| 36 | + #- name: Download latest codecov upload script |
| 37 | + # run: wget https://codecov.io/bash -O newcodecov |
| 38 | + #- name: Detect changes to manually verify |
| 39 | + # run: diff newcodecov .github/jobs/uploadcodecov.sh |
| 40 | + #- name: Publish Test Results |
| 41 | + # uses: EnricoMi/publish-unit-test-result-action@v2 |
| 42 | + # if: always() |
| 43 | + # with: |
| 44 | + # files: | |
| 45 | + # test-results/**/*.xml |
34 | 46 | - name: Upload artifact for debugging
|
35 | 47 | uses: actions/upload-artifact@v3
|
36 | 48 | with:
|
| 49 | + name: unit-test-output |
37 | 50 | path: /tmp/artifacts
|
| 51 | +#.unit_job: |
| 52 | +# script: |
| 53 | +# - set -eux |
| 54 | +# - if [ -z ${PHPVERSION+x} ]; then export PHPVERSION=8.1; fi |
| 55 | +# - if [ -z ${TEST+x} ]; then export TEST="UNIT"; fi |
| 56 | +# - if [ "$TEST" = "UNIT" ] && [ "$CRAWL_SHADOW_MODE" != "0" ]; then exit 0; fi |
| 57 | +# - if [ "$TEST" = "E2E" ] && [ "$CRAWL_SHADOW_MODE" != "0" ] && [ "$CI_COMMIT_BRANCH" != "main" ]; then exit 0; fi |
| 58 | +# - export CRAWL_SHADOW_MODE |
| 59 | +# - ./gitlab/unit-tests.sh $PHPVERSION $TEST |
| 60 | +# artifacts: |
| 61 | +# when: always |
| 62 | +# paths: |
| 63 | +# - unit-tests.xml |
| 64 | +# - coverage-html |
| 65 | +# - deprecation.txt |
| 66 | +# - duration |
| 67 | +# - gitlabartifacts |
| 68 | +# reports: |
| 69 | +# junit: |
| 70 | +# - unit-tests.xml |
| 71 | +# |
| 72 | +#run unit tests: |
| 73 | +# only: |
| 74 | +# - main |
| 75 | +# - /^[0-9].[0-9]$/ |
| 76 | +# extends: [.mariadb_job,.phpsupported_job,.unit_job] |
| 77 | +# |
| 78 | +#run unit tests (PR): |
| 79 | +# except: |
| 80 | +# - main |
| 81 | +# - /^[0-9].[0-9]$/ |
| 82 | +# extends: [.mariadb_job,.phpsupported_job_pr,.unit_job] |
| 83 | +# |
| 84 | +#run unit tests (MySQL): |
| 85 | +# only: |
| 86 | +# - main |
| 87 | +# - /^[0-9].[0-9]$/ |
| 88 | +# extends: [.mysql_job,.unit_job] |
| 89 | +# parallel: |
| 90 | +# matrix: |
| 91 | +# - TEST: ["E2E","Unit"] |
| 92 | +# CRAWL_SHADOW_MODE: ["0"] |
0 commit comments