File tree Expand file tree Collapse file tree 2 files changed +13
-14
lines changed
Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 1616 runs-on : ubuntu-latest
1717
1818 env :
19- php : 8.1
19+ php : 8.2
2020
2121 steps :
2222 - uses : actions/checkout@v3
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
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
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'],
Original file line number Diff line number Diff line change 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 ))
You can’t perform that action at this time.
0 commit comments