Skip to content

Commit af549b5

Browse files
committed
Merge branch 'feat/updateDeps' of github.com:MacPaw/BehatMessengerContext into feat/updateDeps
2 parents 807c4e7 + 1c63d90 commit af549b5

11 files changed

+5554
-47
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/create-release.yml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
uses: actions/setup-node@v1
1818
with:
1919
node-version: 14.17
20-
2120
- name: Install dependencies
2221
run: npm install && npm install --save-dev semantic-release @semantic-release/changelog @semantic-release/git -D
2322
- name: Release

CHANGELOG.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file. See
4+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5+
6+
## [1.1.0](https://github.com/MacPaw/BehatMessengerContext/compare/v1.0.1...v1.1.0) (2021-09-08)
7+
8+
9+
### Features
10+
11+
* add contribution doc ([1e83e34](https://github.com/MacPaw/BehatMessengerContext/commit/1e83e340cf664352a4d15e2eac9822a2c1b0f08f))
12+
13+
14+
### Bug Fixes
15+
16+
* symfony container wiring fixes ([9e18b35](https://github.com/MacPaw/BehatMessengerContext/commit/9e18b3550b854c9c4953929d98675b99e7caf8f9))
17+
18+
### [1.0.1](https://github.com/MacPaw/BehatMessengerContext/compare/v1.0.0...v1.0.1) (2021-08-26)
19+
20+
21+
### Bug Fixes
22+
23+
* update serialized ([8554798](https://github.com/MacPaw/BehatMessengerContext/commit/8554798d39ae6d0bd11735f4bf23073e03466f18))
24+
* update serialized ([ba9646e](https://github.com/MacPaw/BehatMessengerContext/commit/ba9646e88a46c0e25927e748e7bfdd4869519f5e))
25+
26+
## 1.0.0 (2021-08-16)
27+
28+
29+
### Features
30+
31+
* add Ci process ([4f56af2](https://github.com/MacPaw/BehatMessengerContext/commit/4f56af29d3668a1ede2e746aa22fe58b437bde46))
32+
* add codecov ([95fb81b](https://github.com/MacPaw/BehatMessengerContext/commit/95fb81b606c9db9acf5d8f853d4df25022975172))
33+
* add commit linting ([8644857](https://github.com/MacPaw/BehatMessengerContext/commit/8644857a38140950366afd097a9fc9cb8878fa56))
34+
* add create automatical release ([a7b1606](https://github.com/MacPaw/BehatMessengerContext/commit/a7b16062affea009158d032630285f96e3119918))
35+
* add files for review ([8927de7](https://github.com/MacPaw/BehatMessengerContext/commit/8927de7971d21066d1981ceb259ed29d735a521a))
36+
* add phpunit ([d3a88a1](https://github.com/MacPaw/BehatMessengerContext/commit/d3a88a1a7fea9534cc49183c8e03dbe06fd4b148))
37+
* init Library ([249377f](https://github.com/MacPaw/BehatMessengerContext/commit/249377f916fa89dc1dec6121421ae85e589edc9d))
38+
* update ci vendor/bin/phpunit ([698d93b](https://github.com/MacPaw/BehatMessengerContext/commit/698d93b23c9bdba01a9f59e47d71df410eb499bc))
39+
* update ci vendor/bin/phpunit ([740e838](https://github.com/MacPaw/BehatMessengerContext/commit/740e838698d70ca2aa8fbd0384d566d7c1079f65))
40+
41+
42+
### Bug Fixes
43+
44+
* **PLT-4441:** add review fixes ([073839f](https://github.com/MacPaw/BehatMessengerContext/commit/073839f6269b44f079535d157b965691388fd3a3))
45+
* fix styles ([e4c6e2b](https://github.com/MacPaw/BehatMessengerContext/commit/e4c6e2be609e987fbdcd84264b37d451e8f52dda))
46+
* remove files for review ([da1411e](https://github.com/MacPaw/BehatMessengerContext/commit/da1411e0e2dd4603d71c6711dbbc4e7379174058))
47+
* **PLT-4441:** update composer styles ([f1fce9b](https://github.com/MacPaw/BehatMessengerContext/commit/f1fce9b7f3b205702650edb1831f00d92ce355e5))
48+
* update gitignore ([8ab94af](https://github.com/MacPaw/BehatMessengerContext/commit/8ab94afbb3388d8608e0e4a000ab21d81f7be4af))
49+
* **PLT-4441:** update thrown errors ([9a75f81](https://github.com/MacPaw/BehatMessengerContext/commit/9a75f81f420ebf1f564a653053a3e86331b2abfe))

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contribute to Behat Messenger Bundle
1+
# Contribute to BehatMessengerContext
22

33
Thank you for contributing!
44

@@ -16,9 +16,9 @@ This project uses [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer
1616
The coding standard rules are defined in the **phpcs.xml.dist** file (part of this repository).
1717

1818
Your Pull-Request must be compliant with the said standard.
19-
To check your code you can run `composer run cs`. This command will give you a list of violations in your code (if any).
19+
To check your code you can run `composer run code-style`. This command will give you a list of violations in your code (if any).
2020

21-
The most common errors can be automatically fixed just by running `composer run cs-fix`.
21+
The most common errors can be automatically fixed just by running `composer run code-style-fix`.
2222

2323
[coding standard homepage]: https://github.com/doctrine/coding-standard
2424

README.md

+62-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,64 @@
1-
# Messenger Behat Context
1+
Behat Messenger Context
2+
=================================
3+
4+
| Version | Build Status | Code Coverage |
5+
|:---------:|:-------------:|:-----:|
6+
| `master`| [![CI][master Build Status Image]][master Build Status] | [![Coverage Status][master Code Coverage Image]][master Code Coverage] |
7+
| `develop`| [![CI][develop Build Status Image]][develop Build Status] | [![Coverage Status][develop Code Coverage Image]][develop Code Coverage] |
8+
9+
Installation
10+
============
11+
12+
Step 1: Install Context
13+
----------------------------------
14+
Open a command console, enter your project directory and execute:
15+
16+
```console
17+
$ composer require --dev macpaw/behat-messenger-context
18+
```
19+
20+
Step 2: Update Container config to load Messenger Context
21+
----------------------------------
22+
In the `config/services_test.yaml` file of your project:
223

3-
### Install
4-
```shell script
5-
composer require macpaw/messenger-behat-context
624
```
25+
BehatMessengerContext\:
26+
resource: '../vendor/macpaw/behat-messenger-context/src/*'
27+
arguments:
28+
- '@test.service_container'
29+
```
30+
31+
Step 3: Configure Messenger
32+
=============
33+
Copying `config/packages/dev/messenger.yaml` and pasting that into `config/packages/test/`. This gives us messenger configuration that will only be used in the test environment. Uncomment the code, and replace sync with in-memory. Do that for both of the transports.
34+
35+
```yaml
36+
framework:
37+
messenger:
38+
transports:
39+
async: 'in-memory://'
40+
async_priority_high: 'in-memory://'
41+
...
42+
...
43+
```
44+
45+
46+
Step 4: Configure Behat
47+
=============
48+
Go to `behat.yml`
49+
50+
```yaml
51+
...
52+
contexts:
53+
- BehatMessengerContext\Context\MessengerContext
54+
...
55+
```
56+
57+
[master Build Status]: https://github.com/macpaw/BehatMessengerContext/actions?query=workflow%3ACI+branch%3Amaster
58+
[master Build Status Image]: https://github.com/macpaw/BehatMessengerContext/workflows/CI/badge.svg?branch=master
59+
[develop Build Status]: https://github.com/macpaw/BehatMessengerContext/actions?query=workflow%3ACI+branch%3Adevelop
60+
[develop Build Status Image]: https://github.com/macpaw/BehatMessengerContext/workflows/CI/badge.svg?branch=develop
61+
[master Code Coverage]: https://codecov.io/gh/macpaw/BehatMessengerContext/branch/master
62+
[master Code Coverage Image]: https://img.shields.io/codecov/c/github/macpaw/BehatMessengerContext/master?logo=codecov
63+
[develop Code Coverage]: https://codecov.io/gh/macpaw/BehatMessengerContext/branch/develop
64+
[develop Code Coverage Image]: https://img.shields.io/codecov/c/github/macpaw/BehatMessengerContext/develop?logo=codecov

commitlint.config.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
module.exports = {
2-
extends: ['@commitlint/config-conventional']
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'scope-case': [
5+
2,
6+
'never',
7+
[],
8+
],
9+
'header-max-length': [2, 'always', 300],
10+
'subject-case': [
11+
2,
12+
'never',
13+
['pascal-case', 'camel-case', 'snake-case', 'kebab-case'],
14+
],
15+
}
316
}

0 commit comments

Comments
 (0)