Skip to content

Commit 87d22d2

Browse files
committed
Hotfix github actions
1 parent db44d22 commit 87d22d2

10 files changed

+82
-77
lines changed

.github/workflows/diagnostics.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: MetaModels attribute_alias
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- '**-translation'
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
php: [7.4]
15+
contao: [~4.9.0]
16+
17+
steps:
18+
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Pull source
19+
uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0
22+
23+
# see https://github.com/shivammathur/setup-php
24+
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Setup PHP.
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
coverage: none
29+
30+
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Cache composer cache directory
31+
uses: actions/cache@v1
32+
env:
33+
cache-name: composer-cache-dir
34+
with:
35+
path: ~/.cache/composer
36+
key: ${{ runner.os }}-build-${{ env.cache-name }}
37+
38+
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Cache vendor directory
39+
uses: actions/cache@v1
40+
env:
41+
cache-name: composer-vendor
42+
with:
43+
path: vendor
44+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.lock') }}
45+
restore-keys: |
46+
${{ runner.os }}-build-${{ env.cache-name }}-
47+
48+
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Install composer dependencies
49+
run: composer update --prefer-dist --no-interaction --no-suggest
50+
51+
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Run tests
52+
run: ant -keep-going

.travis.yml

-62
This file was deleted.

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/MetaModels/attribute_tablemulti.svg)](https://travis-ci.org/MetaModels/attribute_tablemulti/branches)
1+
[![Build Status](https://github.com/MetaModels/attribute_tablemulti/actions/workflows/diagnostics.yml/badge.svg)](https://github.com/MetaModels/attribute_tablemulti/actions)
22
[![Latest Version tagged](http://img.shields.io/github/tag/MetaModels/attribute_tablemulti.svg)](https://github.com/MetaModels/attribute_tablemulti/tags)
33
[![Latest Version on Packagist](http://img.shields.io/packagist/v/MetaModels/attribute_tablemulti.svg)](https://packagist.org/packages/MetaModels/attribute_tablemulti)
44
[![Installations via composer per month](http://img.shields.io/packagist/dm/MetaModels/attribute_tablemulti.svg)](https://packagist.org/packages/MetaModels/attribute_tablemulti)
@@ -9,6 +9,7 @@ The table multi attribute for MetaModels.
99

1010

1111
## Original idea by Byteworks:
12+
1213
- [Ronny Binder](mailto:[email protected])
1314
- [Michael Bischof](mailto:[email protected])
1415

composer.json

+4
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
}
9292
},
9393
"config": {
94+
"allow-plugins": {
95+
"contao-components/installer": false,
96+
"contao/manager-plugin": false
97+
},
9498
"sort-packages": true
9599
}
96100
}

tests/Test/Attribute/TableMultiAttributeTypeFactoryTest.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of MetaModels/attribute_tablemulti.
55
*
6-
* (c) 2012-2019 The MetaModels team.
6+
* (c) 2012-2022 The MetaModels team.
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -17,7 +17,7 @@
1717
* @author David Molineus <[email protected]>
1818
* @author Ingolf Steinhardt <[email protected]>
1919
* @author Stefan Heimes <[email protected]>
20-
* @copyright 2012-2019 The MetaModels team.
20+
* @copyright 2012-2022 The MetaModels team.
2121
* @license https://github.com/MetaModels/attribute_tablemulti/blob/master/LICENSE LGPL-3.0-or-later
2222
* @filesource
2323
*/
@@ -32,6 +32,8 @@
3232

3333
/**
3434
* Test the attribute factory.
35+
*
36+
* @covers \MetaModels\AttributeTableMultiBundle\Attribute\AttributeTypeFactory
3537
*/
3638
class TableMultiAttributeTypeFactoryTest extends TestCase
3739
{

tests/Test/Attribute/TableMultiTest.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of MetaModels/attribute_tablemulti.
55
*
6-
* (c) 2012-2019 The MetaModels team.
6+
* (c) 2012-2022 The MetaModels team.
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -18,7 +18,7 @@
1818
* @author David Molineus <[email protected]>
1919
* @author Ingolf Steinhardt <[email protected]>
2020
* @author Stefan Heimes <[email protected]>
21-
* @copyright 2012-2019 The MetaModels team.
21+
* @copyright 2012-2022 The MetaModels team.
2222
* @license https://github.com/MetaModels/attribute_tablemulti/blob/master/LICENSE LGPL-3.0-or-later
2323
* @filesource
2424
*/
@@ -31,6 +31,8 @@
3131

3232
/**
3333
* Unit tests to test class TableMulti.
34+
*
35+
* @covers \MetaModels\AttributeTableMultiBundle\Attribute\TableMulti
3436
*/
3537
class TableMultiTest extends TestCase
3638
{

tests/Test/ContaoManager/PluginTest.php

+7-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of MetaModels/attribute_tablemulti.
55
*
6-
* (c) 2012-2019 The MetaModels team.
6+
* (c) 2012-2022 The MetaModels team.
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -15,7 +15,8 @@
1515
* @author Andreas Dziemba <[email protected]>
1616
* @author David Molineus <[email protected]>
1717
* @author Stefan Heimes <[email protected]>
18-
* @copyright 2012-2019 The MetaModels team.
18+
* @author Ingolf Steinhardt <[email protected]>
19+
* @copyright 2012-2022 The MetaModels team.
1920
* @license https://github.com/MetaModels/attribute_tablemulti/blob/master/LICENSE LGPL-3.0-or-later
2021
* @filesource
2122
*/
@@ -31,6 +32,8 @@
3132

3233
/**
3334
* Unit tests the contao manager plugin.
35+
*
36+
* @covers \MetaModels\AttributeTableMultiBundle\ContaoManager\Plugin
3437
*/
3538
class PluginTest extends TestCase
3639
{
@@ -64,7 +67,7 @@ public function testBundleConfig()
6467
/** @var BundleConfig $bundleConfig */
6568
$bundleConfig = $bundles[0];
6669

67-
$this->assertEquals($bundleConfig->getLoadAfter(), [MetaModelsCoreBundle::class]);
68-
$this->assertEquals($bundleConfig->getReplace(), ['metamodelsattribute_tablemulti', 'metamodelsattribute_multi']);
70+
self::assertEquals([MetaModelsCoreBundle::class], $bundleConfig->getLoadAfter());
71+
self::assertEquals(['metamodelsattribute_multi', 'metamodelsattribute_tablemulti'], $bundleConfig->getReplace());
6972
}
7073
}

tests/Test/DependencyInjection/MetaModelsAttributeTableMultiExtensionTest.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of MetaModels/attribute_tablemulti.
55
*
6-
* (c) 2012-2019 The MetaModels team.
6+
* (c) 2012-2022 The MetaModels team.
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -15,7 +15,8 @@
1515
* @author Andreas Dziemba <[email protected]>
1616
* @author David Molineus <[email protected]>
1717
* @author Stefan Heimes <[email protected]>
18-
* @copyright 2012-2019 The MetaModels team.
18+
* @author Ingolf Steinhardt <[email protected]>
19+
* @copyright 2012-2022 The MetaModels team.
1920
* @license https://github.com/MetaModels/attribute_tablemulti/blob/master/LICENSE LGPL-3.0-or-later
2021
* @filesource
2122
*/
@@ -31,6 +32,8 @@
3132

3233
/**
3334
* This test case test the extension.
35+
*
36+
* @covers \MetaModels\AttributeTableMultiBundle\DependencyInjection\MetaModelsAttributeRatingExtension
3437
*/
3538
class MetaModelsAttributeTableMultiExtensionTest extends TestCase
3639
{

tests/Test/DeprecatedAutoloaderTest.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* This file is part of MetaModels/attribute_tablemulti.
55
*
6-
* (c) 2012-2019 The MetaModels team.
6+
* (c) 2012-2022 The MetaModels team.
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -15,7 +15,8 @@
1515
* @author Andreas Dziemba <[email protected]>
1616
* @author David Molineus <[email protected]>
1717
* @author Stefan Heimes <[email protected]>
18-
* @copyright 2012-2019 The MetaModels team.
18+
* @author Ingolf Steinhardt <[email protected]>
19+
* @copyright 2012-2022 The MetaModels team.
1920
* @license https://github.com/MetaModels/attribute_tablemulti/blob/master/LICENSE LGPL-3.0-or-later
2021
* @filesource
2122
*/
@@ -29,7 +30,7 @@
2930
/**
3031
* This class tests if the deprecated autoloader works.
3132
*
32-
* @package MetaModels\AttributeTableMultiBundle\Test
33+
* @covers \MetaModels\AttributeTableMultiBundle\DeprecatedAutoloader
3334
*/
3435
class DeprecatedAutoloaderTest extends TestCase
3536
{

travis.php.ini

-1
This file was deleted.

0 commit comments

Comments
 (0)