Skip to content

Commit

Permalink
Replace Travis with Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TavoNiievez committed Dec 21, 2020
1 parent 8ec70d6 commit 1e1f589
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 69 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,63 @@
name: CI

on:
pull_request:
push:
branches:
- master

jobs:
ewz:
name: Symfony ${{ matrix.symfony }} (PHP ${{ matrix.php }})
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
symfony: [2.8, 3.4, 4.4, 5.2]
exclude:
- php: 5.6
symfony: 4.4
- php: 7.0
symfony: 4.4
- php: 5.6
symfony: 5.2
- php: 7.0
symfony: 5.2
- php: 7.1
symfony: 5.2
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-

- name: Install dependencies
run: |
composer require "symfony/form:^${{ matrix.symfony }}" --no-update
composer require "symfony/framework-bundle:^${{ matrix.symfony }}" --no-update
composer require "symfony/security-bundle:^${{ matrix.symfony }}" --no-update
composer require "symfony/validator:^${{ matrix.symfony }}" --no-update
- name: Install dependencies PHP
run: |
composer install
- name: Run tests
run: vendor/bin/phpunit
68 changes: 0 additions & 68 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
@@ -1,7 +1,7 @@
EWZRecaptchaBundle
==================

[![Build Status](https://api.travis-ci.org/excelwebzone/EWZRecaptchaBundle.svg)](https://travis-ci.org/excelwebzone/EWZRecaptchaBundle)
[![Actions Status](https://github.com/excelwebzone/EWZRecaptchaBundle/workflows/CI/badge.svg)](https://github.com/excelwebzone/EWZRecaptchaBundle/actions)

This bundle provides easy reCAPTCHA form field for Symfony.

Expand Down

0 comments on commit 1e1f589

Please sign in to comment.