Last gitlab ci #3735
Workflow file for this run
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: Unit tests | ||
# We can speedup with: https://github.com/actions/cache | ||
on: | ||
push: | ||
merge_group: | ||
pull_request: | ||
branches: | ||
- main | ||
- '[0-9]+.[0-9]+' | ||
jobs: | ||
unit-tests: | ||
services: | ||
sqlserver: | ||
image: ${{ matrix.SQL }} | ||
ports: | ||
- 3306:3306 | ||
env: | ||
MYSQL_ROOT_PASSWORD: root | ||
options: ${{ matrix.SQL_OPTIONS }} | ||
container: | ||
image: domjudge/gitlabci:24.04 | ||
strategy: | ||
matrix: | ||
PHPVERSION: [8.1] | ||
TEST: [UNIT,E2E] | ||
CRAWL_SHADOW_MODE: [0] | ||
SQL_OPTIONS: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
Check failure on line 28 in .github/workflows/unit-tests.yml GitHub Actions / Unit testsInvalid workflow file
|
||
include: | ||
- PHPVERSION: 8.4 | ||
TEST: UNIT | ||
SQL: mysql | ||
SQL_OPTIONS: --mysql-native-password --authentication_policy=mysql_native_password | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Download latest codecov upload script | ||
run: wget https://codecov.io/bash -O newcodecov | ||
- name: Detect changes to manually verify | ||
run: diff newcodecov .github/jobs/uploadcodecov.sh | ||
- name: Run the unit tests | ||
run: .github/jobs/unit-tests.sh ${{ matrix.PHPVERSION }} ${{ matrix.TEST }} | ||
#- name: Download latest codecov upload script | ||
# run: wget https://codecov.io/bash -O newcodecov | ||
#- name: Detect changes to manually verify | ||
# run: diff newcodecov .github/jobs/uploadcodecov.sh | ||
#- name: Publish Test Results | ||
# uses: EnricoMi/publish-unit-test-result-action@v2 | ||
# if: always() | ||
# with: | ||
# files: | | ||
# test-results/**/*.xml | ||
- name: Upload artifact for debugging | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: unit-test-output | ||
path: /tmp/artifacts |