Skip to content

Commit

Permalink
Merge pull request #56 from DigitalCloud/update-field-service-provider
Browse files Browse the repository at this point in the history
Update field service provider
  • Loading branch information
bsaqqa committed Dec 21, 2021
2 parents bbf1a98 + 8678c87 commit 99f1d7d
Show file tree
Hide file tree
Showing 27 changed files with 10,345 additions and 163 deletions.
3 changes: 3 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Security Policy

If you discover any security related issues, please create a new issue tracker.
72 changes: 72 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Multilingual Nova
on:
push:
branches:
- master
- update-field-service-provider
pull_request:
branches:
- master

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

strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: [ '8.0']
dependency-stability: [ 'prefer-none' ]

name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}

steps:
- uses: actions/checkout@v2
- name: Install PHP versions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Get Composer Cache Directory 2
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
id: actions-cache
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Cache PHP dependencies
uses: actions/cache@v2
id: vendor-cache
with:
path: vendor
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}

- name: Install Dependencies
if: steps.vendor-cache.outputs.cache-hit != 'true'
run: |
composer config http-basic.nova.laravel.com ${{secrets.NOVA_USERNAME}} ${{secrets.NOVA_PASSWORD}}
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Update Dependencies with latest stable
if: matrix.dependency-stability == 'prefer-stable'
run: composer update --prefer-stable
- name: Update Dependencies with lowest stable
if: matrix.dependency-stability == 'prefer-lowest'
run: composer update --prefer-stable --prefer-lowest

- name: Show dir
run: pwd
- name: PHP Version
run: php --version

# Code quality
- name: Execute tests via PestPHP (with codecov)
run: vendor/bin/pest --coverage --coverage-cobertura coverage.xml
- uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: PHP-v${{ matrix.php-versions }}_${{ matrix.operating-system}}
files: ./coverage.xml
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/node_modules
package-lock.json
composer.phar
composer.lock
phpunit.xml
.phpunit.result.cache
.DS_Store
Thumbs.db
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

All notable changes to `Multilingual Nova` will be documented in this file.

## v3.0.0 - 2021-12-21
32 changes: 29 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@
],
"license": "MIT",
"require": {
"php": ">=7.1.0",
"spatie/laravel-translatable": "^4.0"
"php": "^8.0",
"spatie/laravel-translatable": "^4.0",
"spatie/laravel-package-tools": "^1.9"
},
"autoload": {
"psr-4": {
"Digitalcloud\\MultilingualNova\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Digitalcloud\\MultilingualNova\\Tests\\": "tests"
}
},
"extra": {
"laravel": {
"providers": [
Expand All @@ -26,5 +32,25 @@
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true,
"require-dev": {
"orchestra/testbench": "^6.23",
"pestphp/pest-plugin-faker": "^1.0",
"pestphp/pest-plugin-laravel": "^1.1",
"pestphp/pest-plugin-parallel": "^1.0",
"phpunit/phpunit": "^9.5.10",
"laravel/nova": "~3.0",
"laravel/framework": "^8.0"
},
"repositories": [
{
"type": "composer",
"url": "https://nova.laravel.com"
}
],
"scripts": {
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest --coverage",
"format": "vendor/bin/php-cs-fixer fix --allow-risky=yes"
}
}
Loading

0 comments on commit 99f1d7d

Please sign in to comment.