Skip to content

Commit 85d1231

Browse files
committed
Switch to GitHub Actions
1 parent c13d09e commit 85d1231

File tree

4 files changed

+84
-41
lines changed

4 files changed

+84
-41
lines changed

Diff for: .github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @ekyna/core-team

Diff for: .github/workflows/build.yml

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Build
2+
3+
on:
4+
push: ~
5+
pull_request: ~
6+
release:
7+
types: [created]
8+
schedule:
9+
-
10+
cron: "0 1 * * 6" # Run at 1am every Saturday
11+
workflow_dispatch: ~
12+
13+
jobs:
14+
tests:
15+
runs-on: ubuntu-latest
16+
17+
name: "PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}"
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
php: [7.0, 7.1, 7.2, 7.3, 7.4, 8.0]
23+
symfony: [^3.4, ^4.4, ^5.2]
24+
exclude:
25+
- php: 7.0
26+
symfony: ^4.4
27+
- php: 7.0
28+
symfony: ^5.2
29+
- php: 7.1
30+
symfony: ^5.2
31+
32+
env:
33+
APP_ENV: test
34+
35+
steps:
36+
-
37+
uses: actions/checkout@v2
38+
39+
-
40+
name: Setup PHP
41+
uses: shivammathur/setup-php@v2
42+
with:
43+
php-version: "${{ matrix.php }}"
44+
extensions: intl
45+
tools: symfony
46+
coverage: none
47+
48+
-
49+
name: Get Composer cache directory
50+
id: composer-cache
51+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
52+
53+
-
54+
name: Cache Composer
55+
uses: actions/cache@v2
56+
with:
57+
path: ${{ steps.composer-cache.outputs.dir }}
58+
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }}
59+
restore-keys: |
60+
${{ runner.os }}-php-${{ matrix.php }}-composer-
61+
-
62+
name: Restrict Symfony version
63+
if: matrix.symfony != ''
64+
run: |
65+
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.10"
66+
composer config extra.symfony.require "${{ matrix.symfony }}"
67+
68+
-
69+
name: Install PHP dependencies
70+
run: composer install --no-interaction
71+
72+
-
73+
name: Run analysis
74+
run: composer validate --strict
75+
76+
-
77+
name: Run PHPUnit
78+
run: vendor/bin/phpunit --colors=always

Diff for: .travis.yml

-39
This file was deleted.

Diff for: README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Payum Monetico (Credit Mutuel/CIC/OBC) payment gateway.
44

5-
[![Build Status](https://travis-ci.org/ekyna/PayumMonetico.svg?branch=master)](https://travis-ci.org/ekyna/PayumMonetico)
5+
[![Build Status][ico-github-actions]][link-github-actions]
66

77
## Installation / Configuration
88

@@ -74,4 +74,7 @@ public function notifyAction(Request $request)
7474
// Return expected response
7575
return new Response(\Ekyna\Component\Payum\Monetico\Api\Api::NOTIFY_SUCCESS);
7676
}
77-
```
77+
```
78+
79+
[ico-github-actions]: https://github.com/ekyna/PayumMonetico/workflows/Build/badge.svg
80+
[link-github-actions]: https://github.com/ekyna/PayumMonetico/actions?query=workflow%3A"Build"

0 commit comments

Comments
 (0)