Skip to content

Commit 8e4d48c

Browse files
Merge pull request #47 from matthiasnoback/fix_default_style
Improvements
2 parents 3f3155e + efb3c75 commit 8e4d48c

20 files changed

+120
-222
lines changed

.github/workflows/code-style.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Code style
2+
3+
on:
4+
pull_request: null
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
code_analysis:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
actions:
15+
-
16+
name: "Code style"
17+
run: vendor/bin/php-cs-fixer fix -v --diff --dry-run
18+
php-versions: ['7.4']
19+
20+
name: ${{ matrix.actions.name }}
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
26+
# see https://github.com/shivammathur/setup-php
27+
- uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php-versions }}
30+
coverage: none
31+
32+
# composer install cache - https://github.com/ramsey/composer-install
33+
- uses: "ramsey/composer-install@v1"
34+
35+
- run: ${{ matrix.actions.run }}

.github/workflows/tests.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Tests
2+
3+
on:
4+
pull_request: null
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
code_analysis:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
actions:
15+
-
16+
name: "Behat"
17+
run: vendor/bin/behat
18+
php-versions: ['7.4', '8.0']
19+
20+
name: ${{ matrix.actions.name }}
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
26+
# see https://github.com/shivammathur/setup-php
27+
- uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php-versions }}
30+
coverage: none
31+
32+
# composer install cache - https://github.com/ramsey/composer-install
33+
- uses: "ramsey/composer-install@v1"
34+
35+
- run: ${{ matrix.actions.run }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/test/temp/
44
/vendor/
55
/composer.lock
6+
/.env

.travis.yml

Lines changed: 0 additions & 14 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) 2014 Matthias Noback
1+
Copyright (c) Matthias Noback
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

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
By Matthias Noback
44

5-
[![Build Status](https://travis-ci.org/matthiasnoback/symfony-console-form.svg?branch=master)](https://travis-ci.org/matthiasnoback/symfony-console-form)
6-
75
This package contains a Symfony bundle and some tools which enable you to use Symfony Form types to define and
86
interactively process user input from the CLI.
97

bin/composer

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
set -eu
4+
5+
# Copy user and group ID into .env file
6+
printf "HOST_UID=%s\nHOST_GID=%s\n" "$(id -u)" "$(id -g)" > .env
7+
8+
docker-compose run --rm composer --ignore-platform-reqs "$@"

bin/php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
set -eu
4+
5+
# Copy user and group ID into .env file
6+
printf "HOST_UID=%s\nHOST_GID=%s\n" "$(id -u)" "$(id -g)" > .env
7+
8+
docker-compose run --rm php php "$@"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424
},
2525
"require": {
26-
"php": ">=7.2",
26+
"php": ">=7.4",
2727
"symfony/form": "~5.0",
2828
"symfony/console": "~5.0",
2929
"symfony/translation": "~5.0"
@@ -37,6 +37,6 @@
3737
"symfony/validator": "~5.0",
3838
"symfony/yaml": "~5.0",
3939
"symfony/security-csrf": "~5.0",
40-
"phpunit/phpunit": "^7"
40+
"phpunit/phpunit": "^9.5"
4141
}
4242
}

docker-compose.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: '3'
2+
3+
services:
4+
composer:
5+
image: composer:latest
6+
working_dir: /app
7+
volumes:
8+
- ./:/app
9+
env_file:
10+
- .env
11+
user: ${HOST_UID}:${HOST_GID}
12+
init: true
13+
14+
php:
15+
image: php:7.4-cli-alpine
16+
working_dir: /app
17+
volumes:
18+
- ./:/app
19+
env_file:
20+
- .env
21+
user: ${HOST_UID}:${HOST_GID}
22+
init: true

0 commit comments

Comments
 (0)