Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New github action to build and upload the ide extension. #25

Closed
Closed
Show file tree
Hide file tree
Changes from 2 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
21 changes: 21 additions & 0 deletions .github/workflows/build_upload_extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Pyrsia VS Code Extension build and upload extension's binaries

on:
schedule:
# scheduled twice a week
- cron: '* * * * 1,5'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 19
- run: sudo apt-get install xvfb
- run: npm install
- run: npm run compile
- run: npm run lint
- run: xvfb-run --auto-servernum npm run test
- run: npm install -g @vscode/vsce
- run: vsce package -o "pyrsia_vs_code_`date +%Y_%m_%d`.vsix" --allow-star-activation
2 changes: 1 addition & 1 deletion src/views/ConnectionStatusBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class ConnectionStatusBar {
// check the new url connection
const healthy = await client.isNodeHealthy();
if (!healthy) {
vscode.window.showErrorMessage(`Cannot connect to Pyrsi node: '${Util.getNodeConfig().url}',
vscode.window.showErrorMessage(`Cannot connect to Pyrsia node: '${Util.getNodeConfig().url}',
please make sure the Pyrsia node is available.'`);
}
}
Expand Down