Skip to content

Commit d7b2175

Browse files
authored
minor #24 Move to GitHub Actions and bump PHP to ^7.3|^8.0 (pamil)
This PR was merged into the 1.1-dev branch. Discussion ---------- Commits ------- 8db3635 Move to GitHub Actions and bump PHP to ^7.3|^8.0
2 parents 5c8ab1b + 8db3635 commit d7b2175

3 files changed

Lines changed: 48 additions & 25 deletions

File tree

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
12+
jobs:
13+
tests:
14+
runs-on: ubuntu-latest
15+
name: "PHP ${{ matrix.php }}"
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
php: ["7.3", "7.4", "8.0"]
20+
21+
steps:
22+
-
23+
uses: actions/checkout@v2
24+
25+
-
26+
name: Setup PHP
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: "${{ matrix.php }}"
30+
coverage: none
31+
32+
-
33+
name: Install dependencies
34+
run: composer update
35+
36+
-
37+
name: Composer validate
38+
run: composer validate --strict --ansi
39+
40+
-
41+
name: Run tests
42+
run: vendor/bin/behat -f progress --strict -vvv --no-interaction --colors

.travis.yml

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

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
{
77
"name": "Kamil Kokot",
88
"email": "kamil@kokot.me",
9-
"homepage": "http://kamil.kokot.me"
9+
"homepage": "https://kamilkokot.com"
1010
}
1111
],
1212
"require": {
13-
"php": "^7.1",
14-
15-
"behat/behat": "^3.1"
13+
"php": "^7.3 || ^8.0",
14+
"behat/behat": "^3.4"
1615
},
1716
"require-dev": {
1817
"friends-of-behat/cross-container-extension": "^1.0",
@@ -22,6 +21,8 @@
2221
"friends-of-behat/cross-container-extension": "^1.0"
2322
},
2423
"autoload": {
25-
"psr-4": { "FriendsOfBehat\\ServiceContainerExtension\\": "src/" }
24+
"psr-4": {
25+
"FriendsOfBehat\\ServiceContainerExtension\\": "src/"
26+
}
2627
}
2728
}

0 commit comments

Comments
 (0)