Skip to content

Commit e747b8c

Browse files
committed
Fixed Quickstarts.
1 parent 93697aa commit e747b8c

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

.github/workflows/Quickstart Symfony.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
env:
19-
php: 8.1
19+
php: 8.2
2020

2121
steps:
2222
- uses: actions/checkout@v3
@@ -33,13 +33,8 @@ jobs:
3333
- name: Create Symfony project
3434
run: composer create-project symfony/skeleton . ^5
3535

36-
- name: Configure minimum stability for Amp v3.
37-
run: |
38-
composer config minimum-stability beta
39-
composer config prefer-stable true
40-
41-
- name: Require Steam
42-
run: composer require --with-dependencies provider/steam
36+
- name: Require IANA
37+
run: composer require --with-dependencies provider/iana
4338

4439
- name: Require Doctrine annotations
4540
run: composer require doctrine/annotations ^1
@@ -55,9 +50,9 @@ jobs:
5550
class: Symfony\Component\DependencyInjection\ServiceLocator
5651
arguments:
5752
-
58-
- '@ScriptFUSION\Porter\Provider\Steam\SteamProvider'
53+
- '@ScriptFUSION\Porter\Provider\Iana\Provider\IanaProvider'
5954
60-
ScriptFUSION\Porter\Provider\Steam\SteamProvider: ~
55+
ScriptFUSION\Porter\Provider\Iana\Provider\IanaProvider:
6156
.
6257
6358
- name: Add AppListAction
@@ -83,8 +78,12 @@ jobs:
8378
{
8479
return new StreamedResponse(
8580
function () use ($porter): void {
86-
foreach ($porter->import(new Import(new GetAppList())) as $app) {
87-
echo "$app[appid]\n";
81+
foreach ($porter->import(new Import(new IanaPortNumbers())) as $port) {
82+
if ($port['Port Number'] === '') {
83+
continue;
84+
}
85+
86+
echo "{$port['Port Number']}:{$port['Transport Protocol']}\n";
8887
}
8988
},
9089
headers: ['content-type' => 'text/plain'],

.github/workflows/Quickstart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
- name: Test output contains USD
7272
run: 'grep --perl-regexp ''^USD: [\d.]+$'' out'
7373

74-
- name: Test output contains between 30-40 lines
74+
- name: Test output contains between 25-35 lines
7575
run: |
7676
echo Lines: ${lines=$(wc --lines <out)}
77-
((lines >= 30 && lines <= 40))
77+
((lines >= 25 && lines <= 35))

0 commit comments

Comments
 (0)