Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to lunar-api-1.0.0-alpha #4

Merged
merged 6 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]

- 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/[email protected]
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
Loading