Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/command/quickstart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const platformTable = {
linux: 'linux',
}

const beeVersion = 'v2.7.1'

export class Quickstart extends RootCommand implements LeafCommand {
public readonly name = 'quickstart'

Expand All @@ -30,7 +32,7 @@ export class Quickstart extends RootCommand implements LeafCommand {
if (!archString || !platformString) {
throw Error(`Unsupported system: arch=${process.arch} platform=${process.platform}`)
}
const url = `https://github.com/ethersphere/bee/releases/download/v2.6.0/bee-${platformString}-${archString}${suffixString}`
const url = `https://github.com/ethersphere/bee/releases/download/${beeVersion}/bee-${platformString}-${archString}${suffixString}`
this.console.info(`Downloading Bee from ${url}`)
await fetch(url)
.then(x => x.arrayBuffer())
Expand Down
4 changes: 2 additions & 2 deletions test/coverage/coverage-summary.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{"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}}
{"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}}
,"/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}}
,"/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}}
,"/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}}
Expand All @@ -7,7 +7,7 @@
,"/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}}
,"/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}}
,"/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}}
,"/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}}
,"/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}}
,"/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}}
,"/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}}
,"/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}}
Expand Down
1 change: 1 addition & 0 deletions test/prompt/quickstart-prompt.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describeCommand('Test Quickstart command', () => {

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