Skip to content

Commit

Permalink
Update versions in docs and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
harmenjanssen committed Dec 2, 2024
1 parent 2502cc6 commit a36b858
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 18 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/code-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:
jobs:
prettier:
name: Code style
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "12.x"
cache: "npm"
node-version: "22.x"
cache: "yarn"

- run: npm install
- run: yarn install

- run: npx prettier --check .
38 changes: 29 additions & 9 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,55 @@ name: Run tests

on:
push:
pull_request:

jobs:
php-tests:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.0]
laravel: [8.*]
laravel: [8.*, 9.*, 10.*, 11.*]
php: [8.0, 8.1, 8.2, 8.3]
dependency-version: [prefer-stable]
include:
- laravel: 8.*
testbench: 6.*
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
phpunit: 9.*
- laravel: 9.*
testbench: 7.*
phpunit: 9.*
- laravel: 10.*
testbench: 8.*
phpunit: 9.*
- laravel: 11.*
testbench: 9.*
phpunit: 10.*
exclude:
- laravel: 8.*
php: 8.2
- laravel: 8.*
php: 8.3
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 8.1
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -44,7 +64,7 @@ jobs:
- name: Install PHP dependencies
run: |
composer config --ansi -- "http-basic.nova.laravel.com" ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }}
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Run PHP tests
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

[Return To Top](#nova-publish)

- PHP 7.4
- GitHub Actions workflow
- PHP 8.0, 8.1, 8.2
- Laravel 8, 9, 10
- Nova 4

## Installation

Expand Down Expand Up @@ -67,6 +68,18 @@ php artisan vendor:publish --provider="Publish\ToolServiceProvider"

Configure GitHub credentials, set the path to the workflow file and configure an application version.

=======

## Local development

Run `npm run dev` to watch for changes in the `resources/js` directory.

Use the local checkout in a project that uses this plugin. [The Composer documentation explains how to do this.](https://getcomposer.org/doc/05-repositories.md#path)

## i18n

To add a language or change an existing translation, please read the [Laravel documentation about overriding package language files](https://laravel.com/docs/10.x/localization#overriding-package-language-files).

## GitHub API credentials

Personal Access Tokens (PATs) are currently the only way to access the GitHub API. The token is created by a GitHub user. So when this user is removed from the GitHub organization the token must be recreated by another user. Not ideal, so there is room for improvement.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"license": "MIT",
"require": {
"php": "^8.0|^7.4",
"php": "^8.0|^8.1|^8.2|^8.3",
"guzzlehttp/guzzle": "^7.3",
"laravel/nova": "^4.0"
},
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"production": "mix --production",
"nova:install": "yarn --cwd ./vendor/laravel/nova --frozen-lockfile"
},
"engines": {
"node": "22"
},
"devDependencies": {
"@vue/compiler-sfc": "^3.2.22",
"laravel-mix": "^6.0.41",
Expand Down

0 comments on commit a36b858

Please sign in to comment.