Skip to content

Commit 52690e9

Browse files
Jake ChampionJakeChampion
authored andcommitted
ci: update to the latest fastly cli version
1 parent e32632e commit 52690e9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defaults:
1212
env:
1313
viceroy_version: 0.9.4
1414
wasm-tools_version: 1.0.28
15-
fastly-cli_version: 10.4.0
15+
fastly-cli_version: 10.8.10
1616

1717
jobs:
1818

integration-tests/js-compute/fixtures/app/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async function setupKVStore() {
5252
}
5353
}())
5454

55-
const STORE_ID = stores.Data.find(({ Name }) => Name === 'example-test-kv-store')?.ID
55+
const STORE_ID = stores.Data.find(({ Name }) => Name === 'example-test-kv-store')?.StoreID
5656
if (!STORE_ID) {
5757
process.env.STORE_ID = JSON.parse(await zx`fastly kv-store create --quiet --name='example-test-kv-store' --json --token $FASTLY_API_TOKEN`).id
5858
} else {

integration-tests/js-compute/fixtures/app/teardown.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ async function removeKVStore() {
5959
Accept: "application/json",
6060
"Fastly-Key": FASTLY_API_TOKEN
6161
}
62-
})
62+
}).then(res => res.json())
6363

64-
let STORE_ID = (await stores.json()).data.find(({ name }) => name === 'example-test-kv-store')?.id
64+
65+
let STORE_ID = stores.data.find(({ name }) => name === 'example-test-kv-store')?.id
6566
if (STORE_ID) {
6667
await fetch(`https://api.fastly.com/resources/stores/object/${STORE_ID}`, {
6768
method: 'DELETE',

0 commit comments

Comments
 (0)