Skip to content

Commit 3c2a81b

Browse files
slapec93Gergely Békésigithub-actions[bot]
authored
chore: update bee version for quickstart (#698)
* chore: update bee version for quickstart * test: fix * test: update test coverage --------- Co-authored-by: Gergely Békési <gergely.bekesi@ethswarm.org> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8c29c53 commit 3c2a81b

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/command/quickstart.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const platformTable = {
1616
linux: 'linux',
1717
}
1818

19+
const beeVersion = 'v2.7.1'
20+
1921
export class Quickstart extends RootCommand implements LeafCommand {
2022
public readonly name = 'quickstart'
2123

@@ -30,7 +32,7 @@ export class Quickstart extends RootCommand implements LeafCommand {
3032
if (!archString || !platformString) {
3133
throw Error(`Unsupported system: arch=${process.arch} platform=${process.platform}`)
3234
}
33-
const url = `https://github.com/ethersphere/bee/releases/download/v2.6.0/bee-${platformString}-${archString}${suffixString}`
35+
const url = `https://github.com/ethersphere/bee/releases/download/${beeVersion}/bee-${platformString}-${archString}${suffixString}`
3436
this.console.info(`Downloading Bee from ${url}`)
3537
await fetch(url)
3638
.then(x => x.arrayBuffer())

test/coverage/coverage-summary.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{"total": {"lines":{"total":2834,"covered":2154,"skipped":0,"pct":76},"statements":{"total":2855,"covered":2168,"skipped":0,"pct":75.93},"functions":{"total":340,"covered":267,"skipped":0,"pct":78.52},"branches":{"total":603,"covered":338,"skipped":0,"pct":56.05},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
1+
{"total": {"lines":{"total":2835,"covered":2155,"skipped":0,"pct":76.01},"statements":{"total":2856,"covered":2169,"skipped":0,"pct":75.94},"functions":{"total":340,"covered":267,"skipped":0,"pct":78.52},"branches":{"total":603,"covered":338,"skipped":0,"pct":56.05},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
22
,"/home/runner/work/swarm-cli/swarm-cli/src/application.ts": {"lines":{"total":2,"covered":0,"skipped":0,"pct":0},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":2,"covered":0,"skipped":0,"pct":0},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
33
,"/home/runner/work/swarm-cli/swarm-cli/src/config.ts": {"lines":{"total":33,"covered":32,"skipped":0,"pct":96.96},"functions":{"total":1,"covered":0,"skipped":0,"pct":0},"statements":{"total":33,"covered":32,"skipped":0,"pct":96.96},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
44
,"/home/runner/work/swarm-cli/swarm-cli/src/curl.ts": {"lines":{"total":24,"covered":24,"skipped":0,"pct":100},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"statements":{"total":25,"covered":25,"skipped":0,"pct":100},"branches":{"total":13,"covered":12,"skipped":0,"pct":92.3}}
@@ -7,7 +7,7 @@
77
,"/home/runner/work/swarm-cli/swarm-cli/src/command/addresses.ts": {"lines":{"total":37,"covered":32,"skipped":0,"pct":86.48},"functions":{"total":6,"covered":5,"skipped":0,"pct":83.33},"statements":{"total":37,"covered":32,"skipped":0,"pct":86.48},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
88
,"/home/runner/work/swarm-cli/swarm-cli/src/command/download.ts": {"lines":{"total":35,"covered":28,"skipped":0,"pct":80},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":35,"covered":28,"skipped":0,"pct":80},"branches":{"total":11,"covered":4,"skipped":0,"pct":36.36}}
99
,"/home/runner/work/swarm-cli/swarm-cli/src/command/hash.ts": {"lines":{"total":10,"covered":8,"skipped":0,"pct":80},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":10,"covered":8,"skipped":0,"pct":80},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
10-
,"/home/runner/work/swarm-cli/swarm-cli/src/command/quickstart.ts": {"lines":{"total":37,"covered":34,"skipped":0,"pct":91.89},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":37,"covered":34,"skipped":0,"pct":91.89},"branches":{"total":9,"covered":5,"skipped":0,"pct":55.55}}
10+
,"/home/runner/work/swarm-cli/swarm-cli/src/command/quickstart.ts": {"lines":{"total":38,"covered":35,"skipped":0,"pct":92.1},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":38,"covered":35,"skipped":0,"pct":92.1},"branches":{"total":9,"covered":5,"skipped":0,"pct":55.55}}
1111
,"/home/runner/work/swarm-cli/swarm-cli/src/command/status.ts": {"lines":{"total":79,"covered":79,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":79,"covered":79,"skipped":0,"pct":100},"branches":{"total":11,"covered":11,"skipped":0,"pct":100}}
1212
,"/home/runner/work/swarm-cli/swarm-cli/src/command/upload.ts": {"lines":{"total":223,"covered":157,"skipped":0,"pct":70.4},"functions":{"total":16,"covered":14,"skipped":0,"pct":87.5},"statements":{"total":224,"covered":158,"skipped":0,"pct":70.53},"branches":{"total":101,"covered":58,"skipped":0,"pct":57.42}}
1313
,"/home/runner/work/swarm-cli/swarm-cli/src/command/cheque/cashout.ts": {"lines":{"total":32,"covered":30,"skipped":0,"pct":93.75},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":32,"covered":30,"skipped":0,"pct":93.75},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}

test/prompt/quickstart-prompt.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describeCommand('Test Quickstart command', () => {
2424

2525
await invokeTestCli(['quickstart'])
2626
expect(existsSync('bee.yaml')).toBe(true)
27+
expect(mockedFetch).toHaveBeenCalledTimes(1)
2728
const yaml = readFileSync('bee.yaml', 'utf8')
2829
expect(yaml).toContain('api-addr: 127.0.0.1:1633')
2930
expect(yaml).toContain('blockchain-rpc-endpoint: "https://xdai.fairdatasociety.org"')

0 commit comments

Comments
 (0)