Skip to content

Commit d0e631d

Browse files
authored
Merge pull request #268 from FriendsOfSymfony1/switch-to-github-actions
Use GitHub actions for Continuous Integration tests
2 parents 6b82513 + 21b7381 commit d0e631d

File tree

5 files changed

+47
-49
lines changed

5 files changed

+47
-49
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: "Continuous Integration"
2+
3+
on: [push]
4+
5+
env:
6+
fail-fast: true
7+
8+
jobs:
9+
tests:
10+
name: "Symfony1 Tests"
11+
runs-on: "ubuntu-22.04"
12+
13+
strategy:
14+
matrix:
15+
php-version:
16+
- "7.4"
17+
# - "8.0"
18+
# - "8.1"
19+
memcached-version:
20+
- "1.6"
21+
22+
services:
23+
memcached:
24+
image: "memcached:${{ matrix.memcached-version }}"
25+
26+
steps:
27+
- name: "Checkout"
28+
uses: "actions/checkout@v3"
29+
with:
30+
submodules: "true"
31+
32+
- name: "Install PHP"
33+
uses: "shivammathur/setup-php@v2"
34+
with:
35+
php-version: "${{ matrix.php-version }}"
36+
37+
- name: "Install dependencies with Composer"
38+
uses: "ramsey/composer-install@v2"
39+
40+
- name: "Run Check configuration"
41+
run: "php data/bin/check_configuration.php"
42+
43+
- name: "Run Tests"
44+
run: "php data/bin/symfony symfony:test --trace"

.travis.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.
Submodule doctrine updated 88 files

lib/vendor/swiftmailer

Submodule swiftmailer updated 168 files

test/unit/validator/sfValidatorFileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function getMimeTypesFromCategory($category)
105105
$v = new testValidatorFile();
106106
$t->is($v->guessFromFileBinary($tmpDir.'/test.txt'), 'text/plain', '->guessFromFileBinary() guesses the type of a given file');
107107
$t->is($v->guessFromFileBinary($tmpDir.'/foo.txt'), null, '->guessFromFileBinary() returns null if the file type is not guessable');
108-
$t->is($v->guessFromFileBinary('/bin/ls'), (PHP_OS != 'Darwin') ? 'application/x-executable' : 'application/octet-stream', '->guessFromFileBinary() returns correct type if file is guessable');
108+
$t->is($v->guessFromFileBinary('/bin/ls'), (PHP_OS != 'Darwin') ? 'application/x-pie-executable' : 'application/octet-stream', '->guessFromFileBinary() returns correct type if file is guessable');
109109
$t->is($v->guessFromFileBinary('-test'), null, '->guessFromFileBinary() returns null if file path has leading dash');
110110

111111
// ->getMimeType()

0 commit comments

Comments
 (0)