Skip to content

Commit c0bb979

Browse files
committed
Add github workflows
1 parent fb37a8a commit c0bb979

9 files changed

+166
-0
lines changed

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
open_collective: php-soap

.github/ISSUE_TEMPLATE/Bug.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: 🐞 Bug Report
3+
about: Something is broken? 🔨
4+
---
5+
6+
### Bug Report
7+
8+
<!-- Fill in the relevant information below to help triage your issue. -->
9+
10+
| Q | A
11+
|------------ | ------
12+
| BC Break | yes/no
13+
| Version | x.y.z
14+
15+
#### Summary
16+
17+
<!-- Provide a summary describing the problem you are experiencing. -->
18+
19+
#### Current behaviour
20+
21+
<!-- What is the current (buggy) behaviour? -->
22+
23+
#### How to reproduce
24+
25+
<!--
26+
Provide steps to reproduce the bug.
27+
If possible, also add a code snippet with relevant configuration, driver/platform information, SQL queries, etc.
28+
Adding a failing Unit or Functional Test would help us a lot - you can submit one in a Pull Request separately, referencing this bug report.
29+
-->
30+
31+
#### Expected behaviour
32+
33+
<!-- What was the expected (correct) behaviour? -->
34+
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: 🎉 Feature Request
3+
about: You have a neat idea that should be implemented? 🎩
4+
---
5+
6+
### Feature Request
7+
8+
<!-- Fill in the relevant information below to help triage your issue. -->
9+
10+
| Q | A
11+
|------------ | ------
12+
| New Feature | yes
13+
| RFC | yes/no
14+
| BC Break | yes/no
15+
16+
#### Summary
17+
18+
<!-- Provide a summary of the feature you would like to see implemented. -->
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: ❓ Support Question
3+
about: Have a problem that you can't figure out? 🤔
4+
---
5+
6+
<!-- Fill in the relevant information below to help triage your issue. -->
7+
8+
| Q | A
9+
|------------ | -----
10+
| Version | x.y.z
11+
12+
13+
### Support Question
14+
15+
<!-- Describe the issue you are facing here. -->

.github/PULL_REQUEST_TEMPLATE.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Fill in the relevant information below to help triage your pull request. -->
2+
3+
| Q | A
4+
|------------- | -----------
5+
| Type | bug/feature/improvement
6+
| BC Break | yes/no
7+
| Fixed issues | <!-- use #NUM format to reference an issue -->
8+
9+
#### Summary
10+
11+
<!-- Provide a summary of your change. -->

.github/dependabot.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: composer
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "04:00"
8+
open-pull-requests-limit: 10

.github/workflows/analyzers.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Analyzers
2+
3+
on: [push, pull_request]
4+
jobs:
5+
run:
6+
runs-on: ${{ matrix.operating-system }}
7+
strategy:
8+
matrix:
9+
operating-system: [ubuntu-latest]
10+
php-versions: [ '8.2', '8.3' ]
11+
composer-options: [ '--ignore-platform-req=php+' ]
12+
fail-fast: false
13+
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@master
17+
- name: Install PHP
18+
uses: shivammathur/setup-php@master
19+
with:
20+
php-version: ${{ matrix.php-versions }}
21+
tools: 'composer:v2'
22+
extensions: pcov, mbstring, posix, dom, soap
23+
- name: Install dependencies
24+
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }}
25+
- name: Run the tests
26+
run: ./vendor/bin/psalm

.github/workflows/code-style.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CodeStyle
2+
3+
on: [push, pull_request]
4+
jobs:
5+
run:
6+
runs-on: ${{ matrix.operating-system }}
7+
strategy:
8+
matrix:
9+
operating-system: [ubuntu-latest]
10+
php-versions: [ '8.2', '8.3', '8.4' ]
11+
composer-options: [ '--ignore-platform-req=php+' ]
12+
fail-fast: false
13+
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@master
17+
- name: Install PHP
18+
uses: shivammathur/setup-php@master
19+
with:
20+
php-version: ${{ matrix.php-versions }}
21+
tools: 'composer:v2'
22+
extensions: pcov, mbstring, posix, dom, soap
23+
- name: Install dependencies
24+
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }}
25+
- name: Run the tests
26+
run: PHP_CS_FIXER_IGNORE_ENV=1 ./tools/php-cs-fixer.phar fix --dry-run --diff

.github/workflows/tests.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
jobs:
5+
run:
6+
runs-on: ${{ matrix.operating-system }}
7+
strategy:
8+
matrix:
9+
operating-system: [ubuntu-latest]
10+
php-versions: [ '8.2', '8.3', '8.4' ]
11+
composer-options: [ '--ignore-platform-req=php+' ]
12+
dependency-preference: ['current', 'lowest', 'stable']
13+
fail-fast: false
14+
name: PHP ${{ matrix.php-versions }} ${{ matrix.dependency-preference }} deps @ ${{ matrix.operating-system }}
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@master
18+
- name: Install PHP
19+
uses: shivammathur/setup-php@master
20+
with:
21+
php-version: ${{ matrix.php-versions }}
22+
tools: 'composer:v2'
23+
extensions: pcov, mbstring, posix, dom, soap
24+
- name: Install dependencies
25+
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.dependency-preference == 'lowest' && '--prefer-lowest' || '' }} ${{ matrix.dependency-preference == 'stable' && '--prefer-stable' || '' }} ${{ matrix.composer-options }}
26+
- name: Run the tests
27+
run: ./vendor/bin/phpunit

0 commit comments

Comments
 (0)