Skip to content

Commit

Permalink
use translation core
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Jul 4, 2023
1 parent feba4d1 commit 033a2e7
Show file tree
Hide file tree
Showing 65 changed files with 3,230 additions and 4,437 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/run-tests.yml

This file was deleted.

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

on:
push:
pull_request:

jobs:
tests:
runs-on: ubuntu-22.04

strategy:
fail-fast: true
matrix:
php: [8.1, 8.2]
laravel: [^9.0, ^10.0]
include:
- testbench: ^7.0
laravel: ^9.0
- testbench: ^8.0
laravel: ^10.0
- pest: ^1.0
laravel: ^9.0
- pest: ^2.0
laravel: ^10.0

name: P${{ matrix.php }} - L${{ matrix.laravel }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none

- name: Install PHP dependencies
run: |
composer require "illuminate/contracts=${{ matrix.laravel }}" --no-update
composer require --dev "orchestra/testbench=${{ matrix.testbench }}" --no-update
composer require --dev "pestphp/pest=${{ matrix.pest }}" --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Execute unit tests
run: vendor/bin/pest
27 changes: 20 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
}
],
"require": {
"php": "^8.0",
"illuminate/support": "^8.0||^9.0||^10.0",
"laravel/legacy-factories": "^1.3"
"php": "^8.1",
"illuminate/support": "^9.0||^10.0",
"joedixon/laravel-translation-core": "dev-main"
},
"require-dev": {
"orchestra/testbench": "^6.0|^8.0",
"phpunit/phpunit": "^9.0|^10.0",
"mockery/mockery": "^1.0.0"
"mockery/mockery": "^1.0.0",
"pestphp/pest": "^2.0",
"orchestra/testbench": "^8.5",
"laravel/pint": "^1.10",
"nunomaduro/larastan": "^2.0"
},
"autoload": {
"psr-4": {
Expand All @@ -26,7 +28,7 @@
},
"autoload-dev": {
"psr-4": {
"JoeDixon\\Translation\\Tests\\": "tests"
"Tests\\": "tests/"
}
},
"scripts": {
Expand All @@ -40,5 +42,16 @@
"JoeDixon\\Translation\\TranslationBindingsServiceProvider"
]
}
},
"repositories": [
{
"type": "path",
"url": "../laravel-translation-core"
}
],
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
}
}
}
Loading

0 comments on commit 033a2e7

Please sign in to comment.