Skip to content

Commit

Permalink
Switch to github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zonky2 committed Aug 5, 2021
1 parent 27cfbe7 commit 493234a
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 63 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/diagnostics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: MetaModels attribute_contentarticle

on:
push:
branches-ignore:
- '**-translation'
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.3, 7.4]
contao: [~4.4.0, ~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
62 changes: 0 additions & 62 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/MetaModels/attribute_contentarticle.svg)](https://travis-ci.org/MetaModels/attribute_contentarticle)
[![Build Status](https://github.com/MetaModels/attribute_contentarticle/actions/workflows/diagnostics.yml/badge.svg)](https://github.com/MetaModels/attribute_contentarticle/actions)
[![Latest Version tagged](http://img.shields.io/github/tag/MetaModels/attribute_contentarticle.svg)](https://github.com/MetaModels/attribute_contentarticle/tags)
[![Latest Version on Packagist](http://img.shields.io/packagist/v/MetaModels/attribute_contentarticle.svg)](https://packagist.org/packages/MetaModels/attribute_contentarticle)
[![Installations via composer per month](http://img.shields.io/packagist/dm/MetaModels/attribute_contentarticle.svg)](https://packagist.org/packages/MetaModels/attribute_contentarticle)
Expand Down

0 comments on commit 493234a

Please sign in to comment.