ci: run the CLI on the VSCode extension and website codebase in the Rust PR workflow
MODIFY
.github/workflows/pull_request.yml
.github/workflows/pull_request.yml
@@ -98,7 +98,6 @@ jobs:
with:
command: documentation
-
codegen:
name: Codegen
runs-on: ubuntu-latest
@@ -130,3 +129,21 @@ jobs:
git status
exit 1
fi
+
+ test-cli:
+ name: Test CLI
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+ - name: Install toolchain
+ run: rustup show
+ - name: Cache
+ uses: Swatinem/rust-cache@v1
+ - name: Run CLI on JavaScript code
+ uses: actions-rs/cargo@v1
+ continue-on-error: true
+ with:
+ command: rome-cli
+ args: ci editors website

MODIFY
.github/workflows/release_lsp.yml
.github/workflows/release_lsp.yml
@@ -43,7 +43,7 @@ jobs:
working-directory: editors/vscode
run: |
echo "prerelease=true" >> $GITHUB_ENV
- echo "version=$(node ./scripts/updateVersionForPrerelease.js)" >> $GITHUB_ENV
+ echo "version=$(node ./scripts/updateVersionForPrerelease.mjs)" >> $GITHUB_ENV
- name: Check version status
if: steps.version.outputs.changed == 'true'

ci: run the CLI on the VSCode extension and website codebase in the Rust PR workflow (#2871)