Skip to content

Commit be8bd87

Browse files
committed
Add github acotions and update readme and changelog
1 parent a9a76bb commit be8bd87

File tree

4 files changed

+95
-4
lines changed

4 files changed

+95
-4
lines changed

.github/workflows/ci.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
on: push
2+
name: Laravel CI
3+
jobs:
4+
phpunit:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
container: [
9+
"kirschbaumdevelopment/laravel-test-runner:8.2",
10+
"kirschbaumdevelopment/laravel-test-runner:8.3"
11+
]
12+
13+
container:
14+
image: ${{ matrix.container }}
15+
16+
name: ${{ matrix.container }}
17+
18+
services:
19+
mysql:
20+
image: mysql:5.7
21+
env:
22+
MYSQL_ROOT_PASSWORD: password
23+
MYSQL_USER: homestead
24+
MYSQL_PASSWORD: secret
25+
MYSQL_DATABASE: sendportal_dev
26+
ports:
27+
- 3306:3306
28+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
29+
30+
postgres:
31+
image: postgres
32+
env:
33+
POSTGRES_USER: homestead
34+
POSTGRES_PASSWORD: secret
35+
POSTGRES_DB: sendportal_dev
36+
ports:
37+
- 5432:5432
38+
options: --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3
39+
40+
steps:
41+
- uses: actions/checkout@v3
42+
- name: Install composer dependencies
43+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
44+
- name: Run Testsuite against MySQL
45+
run: vendor/bin/phpunit
46+
env:
47+
DB_CONNECTION: mysql
48+
DB_HOST: mysql
49+
DB_PORT: 3306
50+
- name: Run Testsuite against Postgres
51+
run: vendor/bin/phpunit
52+
env:
53+
DB_CONNECTION: pgsql
54+
DB_HOST: postgres
55+
DB_PORT: 5432

.github/workflows/format.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Format [PHP]
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.php'
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
php-cs-fixer:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
ref: ${{ github.event.pull_request.head.ref }}
19+
20+
- name: Run php-cs-fixer
21+
uses: docker://oskarstark/php-cs-fixer-ga:3.13.0
22+
with:
23+
args: --config=.php-cs-fixer.dist.php
24+
25+
- uses: stefanzweifel/git-auto-commit-action@v4
26+
with:
27+
commit_message: Apply php-cs-fixer changes
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Sendportal
22

3+
## 3.0.0 - 2024-04-19
4+
- Update to Laravel 11 ([#290](https://github.com/mettle/sendportal/pull/290)
5+
36
## 2.0.3 - 2021-07-05
47
- Allow overwrite phpunit.xml only locally ([#148](https://github.com/mettle/sendportal/pull/148))
58

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ The [SendPortal](https://github.com/mettle/sendportal) application acts as a wra
1919

2020
## Installation
2121

22-
As of Version 2, SendPortal can be installed as a stand-alone application (i.e. including everything you need to run SendPortal), or as a package inside an existing Laravel application.
23-
2422
If you would like to install SendPortal as a stand-alone application, please follow the [installation guide](https://sendportal.io/docs/v2/getting-started/installation).
2523

2624
If you would like to add SendPortal to an existing application, please follow the [package installation guide](https://sendportal.io/docs/v2/getting-started/package-installation).
2725

28-
## Upgrading
26+
## Requirements
27+
SendPortal V3 requires:
28+
29+
- PHP 8.2+
30+
- Laravel 10+
31+
- MySQL (≥ 5.7) or PostgreSQL (≥ 9.4)
32+
33+
If you are on an earlier version of PHP (7.3+) or Laravel (8+), please use [SendPortal V2](https://github.com/mettle/sendportal/releases/tag/v2.0.4)
2934

30-
If you already have a copy of SendPortal v1 installed, please follow the [upgrade guide](https://sendportal.io/docs/v2/getting-started/upgrade-guide).

0 commit comments

Comments
 (0)