Skip to content

Commit

Permalink
ci: update to the latest fastly cli version
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeChampion committed Apr 11, 2024
1 parent e32632e commit 52690e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defaults:
env:
viceroy_version: 0.9.4
wasm-tools_version: 1.0.28
fastly-cli_version: 10.4.0
fastly-cli_version: 10.8.10

jobs:

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/js-compute/fixtures/app/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function setupKVStore() {
}
}())

const STORE_ID = stores.Data.find(({ Name }) => Name === 'example-test-kv-store')?.ID
const STORE_ID = stores.Data.find(({ Name }) => Name === 'example-test-kv-store')?.StoreID
if (!STORE_ID) {
process.env.STORE_ID = JSON.parse(await zx`fastly kv-store create --quiet --name='example-test-kv-store' --json --token $FASTLY_API_TOKEN`).id
} else {
Expand Down
5 changes: 3 additions & 2 deletions integration-tests/js-compute/fixtures/app/teardown.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ async function removeKVStore() {
Accept: "application/json",
"Fastly-Key": FASTLY_API_TOKEN
}
})
}).then(res => res.json())

let STORE_ID = (await stores.json()).data.find(({ name }) => name === 'example-test-kv-store')?.id

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

0 comments on commit 52690e9

Please sign in to comment.