Skip to content

Commit 5432c2b

Browse files
committed
Fix github actions
1 parent 9e1a749 commit 5432c2b

File tree

4 files changed

+58
-65
lines changed

4 files changed

+58
-65
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

-63
This file was deleted.

README.md

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

66
Select
77
======
88

9-
The select attribute
9+
The select attribute.

composer.json

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
}
6767
},
6868
"config": {
69+
"allow-plugins": {
70+
"contao-components/installer": false,
71+
"contao/manager-plugin": false
72+
},
6973
"sort-packages": true
7074
}
7175
}

0 commit comments

Comments
 (0)