Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
workflow_dispatch:
pull_request:
branches: [ main ]

jobs:
test-app:
name: Test Speedtest Tracker (PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }})
runs-on: ${{ matrix.operating-system }}

strategy:
fail-fast: false
matrix:
operating-system: ['ubuntu-22.04']
php-versions: ['8.1']

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, dom, fileinfo
coverage: xdebug

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Install the application
run: |
touch database/database.sqlite
php -r "file_exists('.env') || copy('.env.example', '.env');"
php artisan app:install --force

- name: Evaluate code quality
run: vendor/bin/pint --test

- name: Test with phpunit including coverage
run: vendor/bin/phpunit --coverage-text
65 changes: 62 additions & 3 deletions _ide_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/**
* A helper file for Laravel, to provide autocomplete information to your IDE
* Generated for Laravel 9.38.0.
* Generated for Laravel 9.39.0.
*
* This file should not be included in your code, only analyzed by your IDE!
*
Expand Down Expand Up @@ -12990,13 +12990,13 @@ public static function apiResource($name, $controller, $options = [])
*
* @param array $attributes
* @param \Closure|array|string $routes
* @return void
* @return \Illuminate\Routing\Router
* @static
*/
public static function group($attributes, $routes)
{
/** @var \Illuminate\Routing\Router $instance */
$instance->group($attributes, $routes);
return $instance->group($attributes, $routes);
}
/**
* Merge the given array with the last group stack.
Expand Down Expand Up @@ -16830,6 +16830,65 @@ public static function callCreator($view)
{
/** @var \Illuminate\View\Factory $instance */
$instance->callCreator($view);
}
/**
* Start injecting content into a fragment.
*
* @param string $fragment
* @return void
* @static
*/
public static function startFragment($fragment)
{
/** @var \Illuminate\View\Factory $instance */
$instance->startFragment($fragment);
}
/**
* Stop injecting content into a fragment.
*
* @return string
* @throws \InvalidArgumentException
* @static
*/
public static function stopFragment()
{
/** @var \Illuminate\View\Factory $instance */
return $instance->stopFragment();
}
/**
* Get the contents of a fragment.
*
* @param string $name
* @param string|null $default
* @return mixed
* @static
*/
public static function getFragment($name, $default = null)
{
/** @var \Illuminate\View\Factory $instance */
return $instance->getFragment($name, $default);
}
/**
* Get the entire array of rendered fragments.
*
* @return array
* @static
*/
public static function getFragments()
{
/** @var \Illuminate\View\Factory $instance */
return $instance->getFragments();
}
/**
* Flush all of the fragments.
*
* @return void
* @static
*/
public static function flushFragments()
{
/** @var \Illuminate\View\Factory $instance */
$instance->flushFragments();
}
/**
* Start injecting content into a section.
Expand Down
2 changes: 1 addition & 1 deletion app/Observers/ResultObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function created(Result $result)

// Send data to time series databases
if ($this->influxDbSettings->v2_enabled) {
SendDataToInfluxDbV2::dispatch($result,$this->influxDbSettings);
SendDataToInfluxDbV2::dispatch($result, $this->influxDbSettings);
}
}

Expand Down
6 changes: 3 additions & 3 deletions app/Policies/FailedJobPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class FailedJobPolicy
use HandlesAuthorization;

public function viewAny(User $user): bool
{
return config('app.debug');
}
{
return config('app.debug');
}
}
Loading