Skip to content

Commit b054904

Browse files
authored
ci: Update to latest version of actions/upload-artifact
1 parent b7f4cc7 commit b054904

File tree

2 files changed

+5
-54
lines changed

2 files changed

+5
-54
lines changed

.github/workflows/phpunit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
run: /usr/local/bin/phpunit --coverage-html=coverage
5151

5252
- name: Archive code coverage results
53-
uses: actions/upload-artifact@v3
53+
uses: actions/upload-artifact@v4
5454
with:
55-
name: code-coverage-report
55+
name: code-coverage-report-${{ matrix.php-versions }}-${{ matrix.phpunit-versions }}-${{ matrix.operating-system }}
5656
path: coverage/
5757
retention-days: 90

tests/IPinfoTest.php

Lines changed: 3 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ public function testLookup()
9898
$this->assertEquals($res->country_currency['symbol'], '$');
9999
$this->assertEquals($res->continent['code'], 'NA');
100100
$this->assertEquals($res->continent['name'], 'North America');
101-
$this->assertEquals($res->loc, '37.4056,-122.0775');
102-
$this->assertEquals($res->latitude, '37.4056');
103-
$this->assertEquals($res->longitude, '-122.0775');
101+
$this->assertEquals($res->loc, '38.0088,-122.1175');
102+
$this->assertEquals($res->latitude, '38.0088');
103+
$this->assertEquals($res->longitude, '-122.1175');
104104
$this->assertEquals($res->postal, '94043');
105105
$this->assertEquals($res->timezone, 'America/Los_Angeles');
106106
$this->assertEquals($res->asn['asn'], 'AS15169');
@@ -191,55 +191,6 @@ public function testGetBatchDetails()
191191
$this->assertArrayHasKey('9.9.9.9', $res);
192192
$this->assertArrayHasKey('10.10.10.10', $res);
193193
$this->assertEquals($res['8.8.8.8/hostname'], 'dns.google');
194-
$this->assertEquals($res['4.4.4.4'], [
195-
'ip' => "4.4.4.4",
196-
'city' => 'Broomfield',
197-
'region' => 'Colorado',
198-
'country' => 'US',
199-
'loc' => '39.8854,-105.1139',
200-
'postal' => '80021',
201-
'timezone' => 'America/Denver',
202-
'asn' => [
203-
'asn' => "AS3356",
204-
'name' => "Level 3 Parent, LLC",
205-
'domain' => "lumen.com",
206-
'route' => "4.0.0.0/9",
207-
'type' => "isp"
208-
],
209-
'company' => [
210-
'name' => "Level 3 Communications, Inc.",
211-
'domain' => "lumen.com",
212-
'type' => "isp"
213-
],
214-
'privacy' => [
215-
'vpn' => false,
216-
'proxy' => false,
217-
'tor' => false,
218-
'relay' => false,
219-
'hosting' => false,
220-
'service' => ""
221-
],
222-
'abuse' => [
223-
'address' => "US, LA, Monroe, 100 CenturyLink Drive, 71203",
224-
'country' => "US",
225-
'email' => "[email protected]",
226-
'name' => "L3 Abuse Contact",
227-
'network' => "4.4.0.0/16",
228-
'phone' => "+1-877-453-8353"
229-
],
230-
'domains' => [
231-
'ip' => "4.4.4.4",
232-
'total' => 120,
233-
'domains' => [
234-
'ncrsaas.com',
235-
'ampuroci.com',
236-
'bachkhoasupply.com',
237-
'dc-scape.com',
238-
'bfgroup.kz',
239-
]
240-
],
241-
'org' => 'AS3356 Level 3 Parent, LLC',
242-
]);
243194

244195
$this->assertEquals($res['AS123'], [
245196
'asn' => "AS123",

0 commit comments

Comments
 (0)