Skip to content

VSCode: Package bricks from GH actions - #83

Merged
fjakobs merged 1 commit into
mainfrom
package-windows
Sep 12, 2022
Merged

VSCode: Package bricks from GH actions#83
fjakobs merged 1 commit into
mainfrom
package-windows

Conversation

@fjakobs

@fjakobs fjakobs commented Sep 8, 2022

Copy link
Copy Markdown
Contributor

No description provided.

@fjakobs
fjakobs force-pushed the package-windows branch 6 times, most recently from 1e09807 to 4641495 Compare September 9, 2022 10:20
@fjakobs
fjakobs force-pushed the package-windows branch 3 times, most recently from 6c822b1 to da80b9b Compare September 9, 2022 11:45
it("should embed a working bricks CLI", async () => {
let bricksPath = __dirname + "/../../bin/bricks";
let result = await execFile(bricksPath, ["--help"]);
assert.ok(result.stdout.indexOf("bricks") > 0);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Asserting exit code might be better here since stdout could be populated by errors as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I check that. For a non 0 exit code the execFile command will actually throw an exception and thus fail the test.

"vscode:prepublish": "rm -rf out && yarn run package:compile && yarn run package:copy-webview-toolkit",
"package": "vsce package",
"package:cli:fetch": "bash ./scripts/fetch-bricks-cli.sh v0.0.1 ${BRICKS_ARCH:-}",
"package:cli:fetch": "BRICKS_VERSION=v0.0.2 && bash ./scripts/fetch-bricks-cli.sh ${BRICKS_VERSION} ${BRICKS_ARCH:-}",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering if it would it be good to have a fetch:latest as well?

@fjakobs fjakobs Sep 9, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely. Let's track that in a separate ticket.


- name: Build VSIX
run: yarn workspace databricks package -o artifacts
run: yarn workspace databricks package -o artifacts -t darwin-x64

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why target darwin? I believe if target is not specified it takes the architecture of the runtime machine? If not can we use matrix.vsix-arch?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wanted to be explicit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants