Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit 1e1f589

Browse files
committed
Replace Travis with Github Actions
1 parent 8ec70d6 commit 1e1f589

3 files changed

Lines changed: 64 additions & 69 deletions

File tree

.github/workflows/build.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
ewz:
11+
name: Symfony ${{ matrix.symfony }} (PHP ${{ matrix.php }})
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
fail-fast: true
16+
matrix:
17+
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
18+
symfony: [2.8, 3.4, 4.4, 5.2]
19+
exclude:
20+
- php: 5.6
21+
symfony: 4.4
22+
- php: 7.0
23+
symfony: 4.4
24+
- php: 5.6
25+
symfony: 5.2
26+
- php: 7.0
27+
symfony: 5.2
28+
- php: 7.1
29+
symfony: 5.2
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v2
33+
34+
- name: Install PHP
35+
uses: shivammathur/setup-php@v2
36+
with:
37+
php-version: ${{ matrix.php }}
38+
tools: composer:v2
39+
40+
- name: Get composer cache directory
41+
id: composer-cache
42+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
43+
44+
- name: Cache composer dependencies
45+
uses: actions/cache@v2
46+
with:
47+
path: ${{ steps.composer-cache.outputs.dir }}
48+
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
49+
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-
50+
51+
- name: Install dependencies
52+
run: |
53+
composer require "symfony/form:^${{ matrix.symfony }}" --no-update
54+
composer require "symfony/framework-bundle:^${{ matrix.symfony }}" --no-update
55+
composer require "symfony/security-bundle:^${{ matrix.symfony }}" --no-update
56+
composer require "symfony/validator:^${{ matrix.symfony }}" --no-update
57+
58+
- name: Install dependencies PHP
59+
run: |
60+
composer install
61+
62+
- name: Run tests
63+
run: vendor/bin/phpunit

.travis.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
EWZRecaptchaBundle
22
==================
33

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

66
This bundle provides easy reCAPTCHA form field for Symfony.
77

0 commit comments

Comments
 (0)