Skip to content

Commit 5a67c01

Browse files
authored
Merge pull request #2 from ByteFlick/v2.0.0-work
v2.0.0
2 parents 7c29624 + 688b3dd commit 5a67c01

File tree

4 files changed

+86
-1
lines changed

4 files changed

+86
-1
lines changed

.github/workflows/dependabot-auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: dependabot-auto-merge
1+
name: Auto merge Dependabot fixes
22
on: pull_request_target
33

44
permissions:

.github/workflows/run-tests.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: run-tests
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
7+
- '.github/workflows/run-tests.yml'
8+
- 'phpunit.xml.dist'
9+
- 'composer.json'
10+
- 'composer.lock'
11+
12+
jobs:
13+
test:
14+
runs-on: ${{ matrix.os }}
15+
timeout-minutes: 5
16+
strategy:
17+
fail-fast: true
18+
matrix:
19+
os: [ubuntu-latest]
20+
php: [8.3]
21+
laravel: [10.*]
22+
stability: [prefer-lowest, prefer-stable]
23+
include:
24+
- laravel: 10.*
25+
testbench: 8.*
26+
carbon: ^2.63
27+
28+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
29+
30+
steps:
31+
- name: Checkout code
32+
uses: actions/checkout@v4
33+
34+
- name: Setup PHP
35+
uses: shivammathur/setup-php@v2
36+
with:
37+
php-version: ${{ matrix.php }}
38+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
39+
coverage: none
40+
41+
- name: Setup problem matchers
42+
run: |
43+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
44+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
45+
46+
- name: Install dependencies
47+
run: |
48+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
49+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
50+
51+
- name: List Installed Dependencies
52+
run: composer show -D
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Update changelog
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
update:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 5
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
with:
19+
ref: main
20+
21+
- name: Update Changelog
22+
uses: stefanzweifel/changelog-updater-action@v1
23+
with:
24+
latest-version: ${{ github.event.release.name }}
25+
release-notes: ${{ github.event.release.body }}
26+
27+
- name: Commit updated CHANGELOG
28+
uses: stefanzweifel/git-auto-commit-action@v5
29+
with:
30+
branch: main
31+
commit_message: Update CHANGELOG
32+
file_pattern: CHANGELOG.md

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Strict Domain Checking for Laravel
44

55
[![Latest Version on Packagist](https://img.shields.io/packagist/v/ByteFlick/laravel-strict-domain.svg?style=flat-square)](https://packagist.org/packages/byteflick/laravel-strict-domain)
6+
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/ByteFlick/laravel-strict-domain/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/ByteFlick/laravel-strict-domain/actions?query=workflow%3Arun-tests+branch%3Amain)
67
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/ByteFlick/laravel-strict-domain/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/byteflick/laravel-strict-domain/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
78
[![Total Downloads](https://img.shields.io/packagist/dt/ByteFlick/laravel-strict-domain.svg?style=flat-square)](https://packagist.org/packages/byteflick/laravel-strict-domain)
89

0 commit comments

Comments
 (0)