Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrogehlen committed May 19, 2024
1 parent 1d6d54c commit 0fd348c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 68 deletions.
67 changes: 2 additions & 65 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
- pull_request

jobs:
linux_tests:
runs-on: ubuntu-20.04
linux-tests:
runs-on: ubuntu-latest

strategy:
fail-fast: true
Expand All @@ -28,69 +28,6 @@ jobs:
tools: composer:v2
coverage: none

- name: Mimic PHP 8.0
run: composer config platform.php 8.0.999
if: matrix.php > 8

- name: Set Minimum Guzzle Version
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer require guzzlehttp/guzzle:^7.2 --no-interaction --no-update
if: matrix.php >= 8

- name: Install dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Execute tests
continue-on-error: ${{ matrix.php > 8 }}
run: vendor/bin/phpunit --verbose

windows_tests:
runs-on: windows-latest

strategy:
fail-fast: true
matrix:
php: ['8.1', '8.2', '8.3']
stability: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - Windows

steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, gd, fileinfo
tools: composer:v2
coverage: none

- name: Mimic PHP 8.0
run: composer config platform.php 8.0.999
if: matrix.php > 8

- name: Set Minimum Guzzle Version
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer require guzzlehttp/guzzle:^7.2 --no-interaction --no-update
if: matrix.php >= 8

- name: Install dependencies
uses: nick-invision/retry@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Total Downloads](https://poser.pugx.org/sereny/laravel-multicompany/downloads.png)](https://packagist.org/packages/sereny/laravel-multicompany)
[![Latest Stable Version](https://poser.pugx.org/sereny/laravel-multicompany/v/stable.png)](https://packagist.org/packages/sereny/laravel-multicompany)

This Laravel library provides a flexible and secure approach to multicompany within a shared database. It allows you to filter and populate the company_id field of models that belong to a company, enabling you to manage data for multiple companies while maintaining data separation.
This Laravel library provides a flexible and secure approach to multicompany within a shared database. It allows you to filter and populate the `company_id` field of models that belong to a company, enabling you to manage data for multiple companies while maintaining data separation.

## Features

Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "sereny/laravel-multicompany",
"description": "The multi tenant control with shared table",
"description": "Multi company for eloquent models",
"keywords": [
"laravel",
"multi-tenant",
"tenant",
"company",
"eloquent",
"database"
],
Expand Down

0 comments on commit 0fd348c

Please sign in to comment.