Skip to content

Commit

Permalink
Deactivated unit tests temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
w3scout committed Jun 1, 2024
1 parent 78d633d commit a57c5f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 54 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
push:
branches:
- 'version/*'
# tags:
# - '*'

jobs:
cs:
Expand All @@ -24,53 +22,3 @@ jobs:

- name: Run the CS fixer
run: composer cs-fixer

tests:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.1, 8.2 ]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Checkout
uses: actions/checkout@v2

- name: Install phpunit
run: cd tools/phpunit && composer update --no-interaction --no-suggest

- name: Install the dependencies
run: composer update --no-interaction --no-suggest

- name: Run the unit tests
run: composer unit-tests

prefer-lowest-tests:
name: PHP ${{ matrix.php }} --prefer-lowest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 8.1, 8.2 ]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Checkout
uses: actions/checkout@v2

- name: Install phpunit
run: cd tools/phpunit && composer update --no-interaction --no-suggest

- name: Install the dependencies
run: composer update --prefer-lowest --prefer-stable --no-interaction --no-suggest

- name: Run the unit tests
run: composer unit-tests
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"contao-manager-plugin": "W3Scout\\ContaoTimetagsBundle\\ContaoManager\\Plugin"
},
"scripts": {
"cs-fixer": "@php tools/ecs/vendor/bin/ecs check config/ contao/ src/ tests/ --config tools/ecs/config.php --fix --ansi",
"unit-tests": "@php tools/phpunit/vendor/bin/phpunit -c tools/phpunit/phpunit.xml.dist"
"cs-fixer": "@php tools/ecs/vendor/bin/ecs check config/ contao/ src/ tests/ --config tools/ecs/config.php --fix --ansi"
}
}

0 comments on commit a57c5f6

Please sign in to comment.