-
Notifications
You must be signed in to change notification settings - Fork 962
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 #289 from cretueusebiu/next
Next
- Loading branch information
Showing
82 changed files
with
8,080 additions
and
5,352 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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = { | ||
root: true, | ||
parser: 'vue-eslint-parser', | ||
parserOptions: { | ||
parser: '@babel/eslint-parser', | ||
ecmaVersion: 2018, | ||
sourceType: 'module' | ||
}, | ||
extends: [ | ||
'plugin:vue/recommended', | ||
'standard' | ||
], | ||
rules: { | ||
'vue/max-attributes-per-line': 'off' | ||
} | ||
} |
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,82 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
tests: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get Composer cache directory | ||
id: composer-cache | ||
run: | | ||
echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Prepare the environment | ||
run: cp .env.example .env | ||
|
||
- name: Install composer dependencies | ||
run: composer install -q --no-ansi --no-interaction --no-progress --no-suggest --prefer-dist --optimize-autoloader | ||
|
||
- name: Directory permissions | ||
run: chmod -R 777 storage bootstrap/cache | ||
|
||
- name: Run tests (Unit and Feature) | ||
run: vendor/bin/phpunit | ||
|
||
- name: Install npm dependencies | ||
run: npm install --no-audit --no-progress --silent | ||
|
||
- name: Build client | ||
run: npm run production | ||
|
||
- name: Upgrade Chrome driver | ||
run: php artisan dusk:chrome-driver `/opt/google/chrome/chrome --version | cut -d " " -f3 | cut -d "." -f1` | ||
|
||
- name: Start Chrome driver | ||
run: ./vendor/laravel/dusk/bin/chromedriver-linux & | ||
|
||
- name: Create database | ||
run: touch database/dusk.sqlite | ||
|
||
- name: Run Laravel server | ||
run: php artisan serve & | ||
|
||
- name: Run Dusk tests | ||
env: | ||
APP_URL: "http://127.0.0.1:8000" | ||
run: php artisan dusk | ||
|
||
- name: Upload screenshots | ||
if: failure() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: screenshots | ||
path: tests/Browser/screenshots | ||
|
||
- name: Upload console logs | ||
if: failure() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: console | ||
path: tests/Browser/console |
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
/node_modules | ||
/.idea | ||
/public/hot | ||
/public/storage | ||
/storage/*.key | ||
/vendor | ||
/public/dist | ||
/public/build | ||
/public/mix-manifest.json | ||
.env | ||
.env.backup | ||
.env.dusk.local | ||
.phpunit.result.cache | ||
Homestead.json | ||
Homestead.yaml | ||
npm-debug.log | ||
yarn-error.log | ||
phpunit.dusk.xml | ||
*.code-workspace | ||
/public/dist | ||
/public/build | ||
/public/mix-manifest.json |
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,13 @@ | ||
php: | ||
preset: laravel | ||
disabled: | ||
- no_unused_imports | ||
finder: | ||
not-name: | ||
- index.php | ||
- server.php | ||
js: | ||
finder: | ||
not-name: | ||
- webpack.mix.js | ||
css: true |
This file was deleted.
Oops, something went wrong.
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.