final tweaks before testing

This commit is contained in:
Adam Weston
2023-07-16 10:17:14 -04:00
parent af17c6f6ae
commit a76b5a4634
17 changed files with 186 additions and 166 deletions

View File

@@ -1,4 +1,4 @@
name: Dependabot Auto Merge
name: "Dependabot Auto-Merge"
on: pull_request_target
@@ -14,7 +14,7 @@ jobs:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.4.0
uses: dependabot/fetch-metadata@v1.6.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

View File

@@ -1,6 +1,12 @@
name: Fix PHP Code Styling
name: "Fix PHP Code Styling"
on: [push]
on:
push:
paths:
- '**.php'
permissions:
contents: write
jobs:
php-code-styling:

View File

@@ -23,4 +23,4 @@ jobs:
uses: ramsey/composer-install@v2
- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github
run: ./vendor/bin/phpstan --error-format=github

View File

@@ -1,8 +1,10 @@
name: Run Tests
name: run-tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
@@ -12,13 +14,12 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.2, 8.1]
laravel: [10.*, 9.*]
stability: [prefer-stable]
laravel: [10.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
carbon: ^2.63
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
@@ -40,8 +41,11 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: List Installed Dependencies
run: composer show -D
- name: Execute tests
run: ./vendor/bin/pest --verbose
run: vendor/bin/pest --ci

View File

@@ -1,9 +1,12 @@
name: Update Changelog
name: "Update Changelog"
on:
release:
types: [released]
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
@@ -11,6 +14,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: main
- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
@@ -21,5 +26,6 @@ jobs:
- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md