-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from Hi-Folks/develop
v0.2.3
- Loading branch information
Showing
21 changed files
with
2,489 additions
and
639 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# GithHub Actions Workflow generated with Ghygen | ||
# Original configuration: http://gh-actions-yaml-generator.test?code=4072d795e78bf272b0ee23c1df8a6e83 | ||
name: PSR12 and Static Code Analysis for with PHP 8 ,7.4, 7.3 | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
- features/** | ||
|
||
jobs: | ||
laravel-tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: [ '8.0','7.4','7.3' ] | ||
dependency-stability: [ prefer-stable ] | ||
|
||
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: Copy .env | ||
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | ||
- name: Install Dependencies | ||
if: steps.vendor-cache.outputs.cache-hit != 'true' | ||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | ||
|
||
- name: Generate key | ||
run: php artisan key:generate | ||
- name: Directory Permissions | ||
run: chmod -R 777 storage bootstrap/cache | ||
|
||
- name: Show Laravel versions | ||
run: php artisan --version | ||
- name: Show dir | ||
run: pwd | ||
- name: PHP Version | ||
run: php --version | ||
|
||
|
||
- name: Execute Code Sniffer via phpcs | ||
run: | | ||
composer require --dev squizlabs/php_codesniffer | ||
vendor/bin/phpcs --standard=PSR12 app | ||
- name: Execute Code Static Analysis (PHP Stan + Larastan) | ||
run: | | ||
vendor/bin/phpstan analyse app -c ./vendor/nunomaduro/larastan/extension.neon --level=4 --no-progress | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# GithHub Actions Workflow generated with Ghygen | ||
# Original configuration: http://gh-actions-yaml-generator.test?code=f6057d1792446de0d97898542edb1b7b | ||
name: Test Sqlite | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
- features/** | ||
|
||
jobs: | ||
laravel-tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: [ '8.0' ] | ||
dependency-stability: [ prefer-stable ] | ||
|
||
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14.x' | ||
- name: Install NPM packages | ||
run: npm ci | ||
- name: Build frontend | ||
run: npm run development | ||
- name: Install PHP versions | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
- name: Copy .env | ||
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | ||
- name: Install Dependencies | ||
if: steps.vendor-cache.outputs.cache-hit != 'true' | ||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | ||
|
||
- name: Generate key | ||
run: php artisan key:generate | ||
- name: Directory Permissions | ||
run: chmod -R 777 storage bootstrap/cache | ||
- name: Run Migrations | ||
# Set environment | ||
env: | ||
SESSION_DRIVER: array | ||
DB_CONNECTION: sqlite | ||
DB_DATABASE: ":memory:" | ||
|
||
run: php artisan migrate | ||
|
||
- name: Show Laravel versions | ||
run: php artisan --version | ||
- name: Show dir | ||
run: pwd | ||
- name: PHP Version | ||
run: php --version | ||
|
||
- name: Execute tests (Unit and Feature tests) via PHPUnit | ||
# Set environment | ||
env: | ||
SESSION_DRIVER: array | ||
DB_CONNECTION: sqlite | ||
DB_DATABASE: ":memory:" | ||
|
||
run: vendor/bin/phpunit --testdox | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# GithHub Actions Workflow generated with Ghygen | ||
# Original configuration: http://gh-actions-yaml-generator.test?code=b7bcc081364231214c674c75585195e1 | ||
name: Test Workflow autogenerated Yaml | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
- features/** | ||
|
||
jobs: | ||
laravel-tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: [ '8.0' ] | ||
dependency-stability: [ prefer-stable ] | ||
|
||
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14.x' | ||
- name: Cache node_modules directory | ||
uses: actions/cache@v2 | ||
id: node_modules-cache | ||
with: | ||
path: node_modules | ||
key: ${{ runner.OS }}-build-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-lock.json') }} | ||
- name: Install NPM packages | ||
if: steps.node_modules-cache.outputs.cache-hit != 'true' | ||
run: npm ci | ||
- name: Build frontend | ||
run: npm run development | ||
- name: Install PHP versions | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
- name: Cache PHP dependencies | ||
uses: actions/cache@v2 | ||
id: vendor-cache | ||
with: | ||
path: vendor | ||
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }} | ||
- name: Copy .env | ||
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | ||
- name: Install Dependencies | ||
if: steps.vendor-cache.outputs.cache-hit != 'true' | ||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | ||
|
||
- name: Generate key | ||
run: php artisan key:generate | ||
- name: Directory Permissions | ||
run: chmod -R 777 storage bootstrap/cache | ||
- name: Run Migrations | ||
# Set environment | ||
env: | ||
SESSION_DRIVER: array | ||
DB_CONNECTION: sqlite | ||
DB_DATABASE: ":memory:" | ||
|
||
run: php artisan migrate | ||
|
||
- name: Show Laravel versions | ||
run: php artisan --version | ||
- name: Show dir | ||
run: pwd | ||
- name: PHP Version | ||
run: php --version | ||
|
||
- name: Execute tests (Unit and Feature tests) via PHPUnit | ||
# Set environment | ||
env: | ||
SESSION_DRIVER: array | ||
DB_CONNECTION: sqlite | ||
DB_DATABASE: ":memory:" | ||
|
||
run: vendor/bin/phpunit --testdox | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.