Skip to content

Commit 3f99c64

Browse files
authored
Add PHP 8.4 tests (#34)
1 parent 3d99e4d commit 3f99c64

File tree

4 files changed

+38
-158
lines changed

4 files changed

+38
-158
lines changed

.docker/php/php84/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# ----------------------
2+
# The FPM base container
3+
# ----------------------
4+
FROM php:8.4-cli-alpine AS dev
5+
6+
RUN apk add --no-cache --virtual .build-deps \
7+
$PHPIZE_DEPS
8+
9+
# Cleanup apk cache and temp files
10+
RUN rm -rf /var/cache/apk/* /tmp/*
11+
12+
# ----------------------
13+
# Composer install step
14+
# ----------------------
15+
16+
# Get latest Composer
17+
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
18+
19+
# ----------------------
20+
# The FPM production container
21+
# ----------------------
22+
FROM dev

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ jobs:
1212
fail-fast: true
1313
matrix:
1414
os: [ubuntu-latest]
15-
php: [8.0, 8.1, 8.2, 8.3]
15+
php: [8.0, 8.1, 8.2, 8.3, 8.4]
1616
laravel: ['9.*', '10.*', '11.*', '12.*']
1717
dependency-version: [prefer-lowest, prefer-stable]
1818
exclude:
1919
- laravel: 9.*
2020
php: 8.2
2121
- laravel: 9.*
2222
php: 8.3
23+
- laravel: 9.*
24+
php: 8.4
2325
- laravel: 10.*
2426
php: 8.0
2527
- laravel: 11.*

CHANGELOG.md

Lines changed: 2 additions & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -1,160 +1,5 @@
11
# Changelog
22

3-
All notable changes to `cybercog/laravel-ownership` will be documented in this file.
3+
All notable changes to `cybercog/laravel-ownership` are documented in [Laravel Ownership releases] page.
44

5-
## [Unreleased]
6-
7-
## [5.6.0] - 2024-03-09
8-
9-
### Added
10-
11-
- ([#32]) Added Laravel 11 support
12-
13-
## [5.5.0] - 2023-02-24
14-
15-
### Added
16-
17-
- ([#28]) Added Laravel 10 support
18-
19-
## [5.4.0] - 2023-02-22
20-
21-
### Added
22-
23-
- ([#25]) Added Laravel 9 support
24-
25-
### Removed
26-
27-
- ([#27]) Dropped PHP 7.x support
28-
- ([#27]) Dropped Laravel 5.2 support
29-
- ([#27]) Dropped Laravel 5.3 support
30-
- ([#27]) Dropped Laravel 5.4 support
31-
- ([#27]) Dropped Laravel 5.5 support
32-
- ([#27]) Dropped Laravel 5.6 support
33-
- ([#27]) Dropped Laravel 5.7 support
34-
- ([#27]) Dropped Laravel 5.8 support
35-
- ([#27]) Dropped Laravel 6 support
36-
- ([#27]) Dropped Laravel 7 support
37-
- ([#27]) Dropped Laravel 8 support
38-
39-
## [5.3.0] - 2020-12-31
40-
41-
### Added
42-
43-
- ([#22]) Added Laravel 6.x support
44-
- ([#22]) Added Laravel 7.x support
45-
- ([#22]) Added Laravel 8.x support
46-
- ([#23]) Added PHP 8.x support
47-
48-
### Removed
49-
50-
- ([#23]) Dropped PHP 5.6 support
51-
- ([#23]) Dropped PHP 7.0 support
52-
53-
## [5.2.0] - 2018-09-09
54-
55-
### Added
56-
57-
- ([#19]) Laravel 5.7 support
58-
59-
## [5.1.0] - 2018-02-08
60-
61-
### Added
62-
63-
- Laravel 5.6 support
64-
65-
## [5.0.0] - 2017-09-13
66-
67-
### Changed
68-
69-
- Contracts namespace changed from `Cog\Contracts\Laravel\Ownership` to `Cog\Contracts\Ownership`
70-
71-
### Fixed
72-
73-
- Service Provider auto-discovery
74-
75-
## [4.0.0] - 2017-09-09
76-
77-
### Added
78-
79-
- Ownable models got new `isOwnedByDefaultOwner` method which automatically try to resolve current user.
80-
81-
### Changed
82-
83-
- Contracts namespace changed from `Cog\Ownership\Contracts` to `Cog\Contracts\Laravel\Ownership`
84-
- Classes namespace changed from `Cog\Ownership` to `Cog\Laravel\Ownership`
85-
- `ModelObserver` renamed to `OwnableObserver`
86-
- `HasOwner` contract renamed to `Ownable`
87-
88-
## [3.1.0] - 2017-08-30
89-
90-
### Added
91-
92-
- Laravel 5.5 support
93-
- Service Provider auto-discovery
94-
95-
## [3.0.0] - 2017-04-10
96-
97-
### Changed
98-
99-
- Default database column used by models with strict ownership was renamed from `owned_by` to `owned_by_id`.
100-
101-
[Upgrade instructions]
102-
103-
## [2.2.0] - 2017-02-07
104-
105-
### Added
106-
107-
- `owner()` alias for method `ownedBy`
108-
- Laravel 5.4 support
109-
110-
## [2.1.0] - 2016-12-21
111-
112-
### Added
113-
114-
- `isNotOwnedBy($owner)` to check if model not owned by concrete owner.
115-
116-
## [2.0.0] - 2016-12-17
117-
118-
### Added
119-
120-
- `withDefaultOwner()` set default owner value on create.
121-
- `withDefaultOwner($owner)` overwrite default owner value on create with concrete owner.
122-
- `withoutDefaultOwner()` don't set default owner on model create.
123-
- `scopeWhereNotOwnedBy($owner)` scope results to exclude unowned records by owner.
124-
125-
### Changed
126-
127-
- Renamed method `getDefaultOwner()` to `resolveDefaultOwner()`.
128-
- Renamed flag attribute `$setDefaultOwnerOnCreate` to `$withDefaultOwnerOnCreate`.
129-
130-
### Fixed
131-
132-
- Set default owner on model creation.
133-
134-
## [1.0.0] - 2016-12-15
135-
136-
- Initial release
137-
138-
[Unreleased]: https://github.com/cybercog/laravel-ownership/compare/5.6.0...master
139-
[5.6.0]: https://github.com/cybercog/laravel-ownership/compare/5.4.0...5.6.0
140-
[5.5.0]: https://github.com/cybercog/laravel-ownership/compare/5.4.0...5.5.0
141-
[5.4.0]: https://github.com/cybercog/laravel-ownership/compare/5.3.0...5.4.0
142-
[5.3.0]: https://github.com/cybercog/laravel-ownership/compare/5.2.0...5.3.0
143-
[5.2.0]: https://github.com/cybercog/laravel-ownership/compare/5.1.0...5.2.0
144-
[5.1.0]: https://github.com/cybercog/laravel-ownership/compare/5.0.0...5.1.0
145-
[5.0.0]: https://github.com/cybercog/laravel-ownership/compare/4.0.0...5.0.0
146-
[4.0.0]: https://github.com/cybercog/laravel-ownership/compare/3.1.0...4.0.0
147-
[3.1.0]: https://github.com/cybercog/laravel-ownership/compare/3.0.0...3.1.0
148-
[3.0.0]: https://github.com/cybercog/laravel-ownership/compare/2.2.0...3.0.0
149-
[2.2.0]: https://github.com/cybercog/laravel-ownership/compare/2.1.0...2.2.0
150-
[2.1.0]: https://github.com/cybercog/laravel-ownership/compare/2.0.0...2.1.0
151-
[2.0.0]: https://github.com/cybercog/laravel-ownership/compare/1.0.0...2.0.0
152-
[Upgrade instructions]: UPGRADING.md
153-
154-
[#32]: https://github.com/cybercog/laravel-ownership/pull/32
155-
[#28]: https://github.com/cybercog/laravel-ownership/pull/28
156-
[#27]: https://github.com/cybercog/laravel-ownership/pull/27
157-
[#25]: https://github.com/cybercog/laravel-ownership/pull/25
158-
[#23]: https://github.com/cybercog/laravel-ownership/pull/23
159-
[#22]: https://github.com/cybercog/laravel-ownership/pull/22
160-
[#19]: https://github.com/cybercog/laravel-ownership/pull/19
5+
[Laravel Ownership releases]: https://github.com/cybercog/laravel-ownership/releases

docker-compose.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,14 @@ services:
3232
working_dir: /app
3333
volumes:
3434
- ./:/app
35+
36+
php84:
37+
container_name: laravel-ownership-lib-84
38+
image: laravel-ownership-lib-84
39+
build:
40+
context: ./
41+
dockerfile: ./.docker/php/php84/Dockerfile
42+
tty: true
43+
working_dir: /app
44+
volumes:
45+
- ./:/app

0 commit comments

Comments
 (0)