Merge tag '2.2.1' #120
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: DC General Contao Frontend | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: [7.4] | |
contao: [~4.9.0] | |
steps: | |
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Pull source | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
# see https://github.com/shivammathur/setup-php | |
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Setup PHP. | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none | |
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Cache composer cache directory | |
uses: actions/cache@v1 | |
env: | |
cache-name: composer-cache-dir | |
with: | |
path: ~/.cache/composer | |
key: ${{ runner.os }}-build-${{ env.cache-name }} | |
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Cache vendor directory | |
uses: actions/cache@v1 | |
env: | |
cache-name: composer-vendor | |
with: | |
path: vendor | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Install composer dependencies | |
run: composer update --prefer-dist --no-interaction --no-suggest | |
- name: PHP ${{ matrix.php }} ${{ matrix.contao }} Run tests | |
run: ant -keep-going |