Skip to content

Commit

Permalink
Merge pull request #97 from shopperlabs/products-stock-management
Browse files Browse the repository at this point in the history
Products stock management
  • Loading branch information
mckenziearts authored Mar 31, 2022
2 parents e5d2dff + 1ab338d commit 0a3ae76
Show file tree
Hide file tree
Showing 45 changed files with 1,320 additions and 1,717 deletions.
Empty file.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
blank_issues_enabled: false
contact_links:
- name: Bug Report
url: https://github.com/shopperlabs/framework/discussions/new
about: Submit a bug or an issue
- name: Feature request
url: https://github.com/shopperlabs/framework/discussions/new
about: For ideas or feature requests
- name: Support questions & other
url: https://github.com/shopperlabs/framework/discussions/new
about: If you have a question or need help using the framework
- name: Documentation issue
url: https://github.com/shopperlabs/laravelshopper.dev
about: For documentation issues, open a pull request at the shopperlabs/laravelshopper.dev repository
7 changes: 7 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Security Policy

**PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY.**

## Reporting a Vulnerability

If you discover a security vulnerability within Shopper Framework, please send an email to Arthur Monney at [email protected]. All security vulnerabilities will be promptly addressed.
43 changes: 31 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,55 @@ name: tests

on:
push:
branches:
- "**"
pull_request:
schedule:
- cron: '0 0 * * *'
types: [ready_for_review, synchronize, opened]

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

strategy:
fail-fast: true
matrix:
php: [8.0]
laravel: [^8.0]
dependency-version: [prefer-lowest, prefer-stable]
php: [7.3, 7.4, 8.0, 8.1]
laravel: [8.*, 9.*]
exclude:
- php: 7.3
laravel: 9.*
- php: 7.4
laravel: 9.*
- php: 8.1
laravel: 8.*
dependency-version: [prefer-stable]

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
name: PHP:${{ matrix.php }} / Laravel:${{ matrix.laravel }}(${{ matrix.dependency-version }})

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

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

- 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
run: |
composer require "illuminate/contracts=${{ matrix.laravel }}" --no-update
composer update --prefer-dist --no-interaction --no-progress
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update --dev
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
31 changes: 16 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "An eCommerce administration built with Laravel for create and manage online shop.",
"keywords": [
"laravel",
"livewire components",
"admin",
"shopper",
"e-commerce"
Expand All @@ -17,41 +18,41 @@
}
],
"require": {
"php": "^8.0|^8.1",
"php": "^7.3|^8.0",
"ext-intl": "*",
"ext-json": "*",
"asantibanez/laravel-blade-sortable": "^1.3",
"askedio/laravel-soft-cascade": "^8.1",
"bacon/bacon-qr-code": "^2.0",
"blade-ui-kit/blade-heroicons": "^1.2",
"doctrine/dbal": "^3.0",
"illuminate/support": "^8.0|^9.0",
"illuminate/support": "^8.80|^9.0",
"illuminate/database": "^8.80|^9.0",
"illuminate/validation": "^8.80|^9.0",
"jenssegers/agent": "^2.6",
"laravel/cashier": "^12.10",
"laravel/helpers": "^1.4.1",
"laravel/ui": "^3.2",
"livewire/livewire": "^2.10",
"maatwebsite/excel": "^3.1",
"maatwebsite/laravel-sidebar": "^2.4",
"milon/barcode": "^8.0.1",
"milon/barcode": "^9.0.0",
"moneyphp/money": "^3.3",
"wireui/wireui": "^1.0",
"wireui/wireui": "^0.17.0|^1.0",
"pragmarx/google2fa": "^7.0|^8.0",
"rappasoft/laravel-livewire-tables": "^1.19",
"reecem/mocker": "1.1.*",
"spatie/laravel-analytics": "^3.11",
"spatie/laravel-analytics": "^4.1.0",
"spatie/laravel-medialibrary": "^9.0.0",
"spatie/laravel-permission": "^3.2",
"spatie/laravel-permission": "^5.5.2",
"staudenmeir/laravel-adjacency-list": "^1.0",
"stevebauman/location": "^5.2",
"stevebauman/location": "^6.3.1",
"wire-elements/modal": "^1.0.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.2",
"friendsofphp/php-cs-fixer": "^3.6",
"mockery/mockery": "^1.4",
"nunomaduro/collision": "^5.11|^6.1",
"orchestra/testbench": "^5.0|^6.0",
"phpunit/phpunit": "^9.5"
"orchestra/testbench": "^6.0|^7.0",
"phpunit/phpunit": "^8.4|^9.0",
"reecem/mocker": "^1.2"
},
"autoload": {
"files": [
Expand All @@ -78,8 +79,8 @@
}
},
"scripts": {
"test": "vendor/bin/phpunit",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage",
"test": "./vendor/bin/phpunit --configuration phpunit.xml",
"test-coverage": "./vendor/bin/phpunit --coverage-html coverage",
"lint": [
"./vendor/bin/php-cs-fixer fix -vvv --show-progress=dots"
]
Expand Down
Loading

0 comments on commit 0a3ae76

Please sign in to comment.