Skip to content

Commit 5fd47d7

Browse files
Merge pull request #1124 from henrywhitaker3/fix/1119
2 parents 3955a2d + 724a9f1 commit 5fd47d7

15 files changed

Lines changed: 2724 additions & 1580 deletions

File tree

.github/workflows/laravel-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- uses: shivammathur/setup-php@b7d1d9c9a92d8d8463ce36d7f60da34d461724f8
1414
with:
15-
php-version: '7.4'
15+
php-version: '8.2'
1616
- uses: actions/checkout@v2
1717
- name: Copy .env
1818
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
@@ -46,7 +46,7 @@ jobs:
4646
- name: Directory Permissions
4747
run: chmod -R 777 storage bootstrap/cache
4848
- name: Download Speedtest binary
49-
run: wget https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-x86_64-linux.tgz -O speedtest.tgz && tar zxvf speedtest.tgz && mv speedtest app/Bin/
49+
run: wget https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-x86_64.tgz -O speedtest.tgz && tar zxvf speedtest.tgz && mv speedtest app/Bin/
5050
- name: Accept EULA
5151
env:
5252
DB_CONNECTION: sqlite

Taskfile.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: "3"
2+
3+
vars:
4+
RTAG:
5+
sh: head -n 25 /dev/random | md5sum | head -c 8
6+
7+
tasks:
8+
build:
9+
cmds:
10+
- docker build . -f docker/Dockerfile --tag henrywhitaker3/speedtest-tracker:{{ .RTAG }}
11+
12+
run:
13+
deps: [build]
14+
cmds:
15+
- docker run --rm -p 8765:80 -e OOKLA_EULA_GDPR=true henrywhitaker3/speedtest-tracker:{{ .RTAG }}

app/Actions/QueueSpeedtest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public function run()
3030
{
3131
SettingsHelper::loadIntegrationConfig();
3232

33-
SpeedtestJob::dispatch(false, config('integrations'), $this->speedtestProvider);
33+
SpeedtestJob::dispatch($this->speedtestProvider, false, config('integrations'));
3434
}
3535
}

app/Jobs/SpeedtestJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class SpeedtestJob implements ShouldQueue
4343
*
4444
* @return void
4545
*/
46-
public function __construct($scheduled = true, $config = [], SpeedtestProvider $speedtestProvider)
46+
public function __construct(SpeedtestProvider $speedtestProvider, $scheduled = true, $config = [])
4747
{
4848
$this->scheduled = $scheduled;
4949
$this->config = $config;

changelog.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
{
2+
"1.12.3": [
3+
{
4+
"description": "Updated to PHP 8.2",
5+
"link": ""
6+
},
7+
{
8+
"description": "Updated speedtest cli to 1.2.0 (#1119)",
9+
"link": "https://github.com/henrywhitaker3/Speedtest-Tracker/issues/1119"
10+
}
11+
],
212
"1.12.2": [
313
{
414
"description": "Fixed a bug where the latest X days widget would not update for the failure graph",

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"license": "MIT",
1010
"require": {
11-
"php": "^7.2.5",
11+
"php": "^8",
1212
"doctrine/dbal": "^2.10",
1313
"dragonmantank/cron-expression": "^3",
1414
"fideloper/proxy": "^4.2",

0 commit comments

Comments
 (0)