Skip to content

Commit

Permalink
Merge pull request #4 from dystcz/feature/upgrade-to-lunar-api-1.0.0-…
Browse files Browse the repository at this point in the history
…alpha

Upgrade to lunar-api-1.0.0-alpha
  • Loading branch information
theimerj authored May 1, 2024
2 parents 26a4d03 + a57f425 commit 85d734f
Show file tree
Hide file tree
Showing 6 changed files with 3,370 additions and 1,603 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/fix-php-code-style-issues.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Fix PHP code style issues

on:
push:
paths:
- "**.php"

permissions:
contents: write

jobs:
php-code-styling:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@2.3.0

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix styling
45 changes: 0 additions & 45 deletions .github/workflows/main.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Tests

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
php: [8.2, 8.3]
laravel: [11]
redis: [6, 7]

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, bcmath
tools: composer:v2
coverage: none
ini-values: error_reporting=E_ALL

- name: Start Redis
uses: supercharge/redis-github-action@1.7.0
with:
redis-version: ${{ matrix.redis }}

- name: Set Laravel Version
run: composer require "laravel/framework:^${{ matrix.laravel }}" --no-update

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-

- name: Install dependencies
uses: nick-fields/retry@v2
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: composer test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ composer.phar
.DS_Store
/.idea
.phpunit.result.cache
.phpunit.cache
.php-cs-fixer.cache
/node_modules
Session.vim
Expand Down
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@
],
"require": {
"php": "^8.2",
"ext-redis": "*",
"illuminate/support": "^10.0",
"dystcz/lunar-api": "^0.8"
"dystcz/lunar-api": "^1.0.0-alpha",
"illuminate/support": "^11.0",
"ext-redis": "*"
},
"require-dev": {
"laravel-json-api/testing": "^2.1",
"laravel-json-api/testing": "^3.0",
"laravel/pint": "^1.7",
"nunomaduro/collision": "^7.0",
"orchestra/testbench": "^8.0",
"orchestra/testbench": "^9.0",
"pestphp/pest": "^2.0",
"pestphp/pest-plugin-faker": "^2.0",
"spatie/laravel-ray": "^1.32"
Expand Down
Loading

0 comments on commit 85d734f

Please sign in to comment.