mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-29 14:28:42 +02:00
Removed Part-DB 8.1 runner on github
This commit is contained in:
parent
883d38ecfc
commit
1f384a6ab8
1 changed files with 18 additions and 18 deletions
36
.github/workflows/tests.yml
vendored
36
.github/workflows/tests.yml
vendored
|
@ -9,7 +9,7 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- '*'
|
- '*'
|
||||||
- "!l10n_*"
|
- "!l10n_*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
phpunit:
|
phpunit:
|
||||||
name: PHPUnit and coverage Test (PHP ${{ matrix.php-versions }}, ${{ matrix.db-type }})
|
name: PHPUnit and coverage Test (PHP ${{ matrix.php-versions }}, ${{ matrix.db-type }})
|
||||||
|
@ -18,7 +18,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
php-versions: [ '8.1', '8.2', '8.3', '8.4' ]
|
php-versions: ['8.2', '8.3', '8.4' ]
|
||||||
db-type: [ 'mysql', 'sqlite', 'postgres' ]
|
db-type: [ 'mysql', 'sqlite', 'postgres' ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
@ -52,7 +52,7 @@ jobs:
|
||||||
coverage: pcov
|
coverage: pcov
|
||||||
ini-values: xdebug.max_nesting_level=1000
|
ini-values: xdebug.max_nesting_level=1000
|
||||||
extensions: mbstring, intl, gd, xsl, gmp, bcmath, :php-psr
|
extensions: mbstring, intl, gd, xsl, gmp, bcmath, :php-psr
|
||||||
|
|
||||||
- name: Start MySQL
|
- name: Start MySQL
|
||||||
run: sudo systemctl start mysql.service
|
run: sudo systemctl start mysql.service
|
||||||
if: matrix.db-type == 'mysql'
|
if: matrix.db-type == 'mysql'
|
||||||
|
@ -71,9 +71,9 @@ jobs:
|
||||||
# mysql version: 5.7
|
# mysql version: 5.7
|
||||||
# mysql database: 'part-db'
|
# mysql database: 'part-db'
|
||||||
# mysql root password: '1234'
|
# mysql root password: '1234'
|
||||||
|
|
||||||
## Setup caches
|
## Setup caches
|
||||||
|
|
||||||
- name: Get Composer Cache Directory
|
- name: Get Composer Cache Directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
run: |
|
run: |
|
||||||
|
@ -83,8 +83,8 @@ jobs:
|
||||||
path: ${{ steps.composer-cache.outputs.dir }}
|
path: ${{ steps.composer-cache.outputs.dir }}
|
||||||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-composer-
|
${{ runner.os }}-composer-
|
||||||
|
|
||||||
- name: Get yarn cache directory path
|
- name: Get yarn cache directory path
|
||||||
id: yarn-cache-dir-path
|
id: yarn-cache-dir-path
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||||
|
@ -96,48 +96,48 @@ jobs:
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-yarn-
|
${{ runner.os }}-yarn-
|
||||||
|
|
||||||
- name: Install composer dependencies
|
- name: Install composer dependencies
|
||||||
run: composer install --prefer-dist --no-progress
|
run: composer install --prefer-dist --no-progress
|
||||||
|
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '18'
|
node-version: '18'
|
||||||
|
|
||||||
- name: Install yarn dependencies
|
- name: Install yarn dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
|
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
|
||||||
- name: Create DB
|
- name: Create DB
|
||||||
run: php bin/console --env test doctrine:database:create --if-not-exists -n
|
run: php bin/console --env test doctrine:database:create --if-not-exists -n
|
||||||
if: matrix.db-type == 'mysql' || matrix.db-type == 'postgres'
|
if: matrix.db-type == 'mysql' || matrix.db-type == 'postgres'
|
||||||
|
|
||||||
- name: Do migrations
|
- name: Do migrations
|
||||||
run: php bin/console --env test doctrine:migrations:migrate -n
|
run: php bin/console --env test doctrine:migrations:migrate -n
|
||||||
|
|
||||||
# Use our own custom fixtures loading command to circumvent some problems with reset the autoincrement values
|
# Use our own custom fixtures loading command to circumvent some problems with reset the autoincrement values
|
||||||
- name: Load fixtures
|
- name: Load fixtures
|
||||||
run: php bin/console --env test partdb:fixtures:load -n
|
run: php bin/console --env test partdb:fixtures:load -n
|
||||||
|
|
||||||
- name: Run PHPunit and generate coverage
|
- name: Run PHPunit and generate coverage
|
||||||
run: ./bin/phpunit --coverage-clover=coverage.xml
|
run: ./bin/phpunit --coverage-clover=coverage.xml
|
||||||
|
|
||||||
- name: Upload coverage
|
- name: Upload coverage
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
env_vars: PHP_VERSION,DB_TYPE
|
env_vars: PHP_VERSION,DB_TYPE
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
|
|
||||||
- name: Test app:clean-attachments
|
- name: Test app:clean-attachments
|
||||||
run: php bin/console partdb:attachments:clean-unused -n
|
run: php bin/console partdb:attachments:clean-unused -n
|
||||||
|
|
||||||
- name: Test app:convert-bbcode
|
- name: Test app:convert-bbcode
|
||||||
run: php bin/console app:convert-bbcode -n
|
run: php bin/console app:convert-bbcode -n
|
||||||
|
|
||||||
- name: Test app:show-logs
|
- name: Test app:show-logs
|
||||||
run: php bin/console app:show-logs -n
|
run: php bin/console app:show-logs -n
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue