Skip to content

Commit 33f08ee

Browse files
committed
Year 2021: Code Strikes Back
1 parent c150fa7 commit 33f08ee

File tree

5 files changed

+48
-75
lines changed

5 files changed

+48
-75
lines changed

.github/workflows/blank.yml

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

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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-20.04
15+
name: "PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}"
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
php: ["7.4", "8.0"]
20+
symfony: ["^4.4", "^5.2"]
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: "${{ matrix.php }}"
29+
coverage: none
30+
31+
- name: Restrict Symfony version
32+
if: matrix.symfony != ''
33+
run: |
34+
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.11"
35+
composer config extra.symfony.require "${{ matrix.symfony }}"
36+
37+
- name: Install dependencies
38+
run: composer update
39+
40+
- name: Run analysis
41+
run: composer validate --strict
42+
43+
- name: Run tests
44+
run: vendor/bin/behat --strict -vvv --no-interaction

.travis.yml

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

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016-2017 Łukasz Chruściel
1+
Copyright (c) 2016-2021 Łukasz Chruściel
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
}
1010
],
1111
"require": {
12-
"php": "^7.1 || ^8.0",
13-
"behat/behat": "^3.4",
14-
"symfony/dependency-injection": "^3.4 || ^4.1 || ^5.0"
12+
"php": "^7.4 || ^8.0",
13+
"behat/behat": "^3.8",
14+
"symfony/dependency-injection": "^4.4 || ^5.2"
1515
},
1616
"require-dev": {
1717
"friends-of-behat/test-context": "^1.0"

0 commit comments

Comments
 (0)