diff --git a/.github/workflows/analyzer_tests.yml b/.github/workflows/analyzer_tests.yml index fa922bdf..d15a24ca 100644 --- a/.github/workflows/analyzer_tests.yml +++ b/.github/workflows/analyzer_tests.yml @@ -5,12 +5,14 @@ on: paths-ignore: - '.github/**' - '!**/analyzer_tests.yml' + - '!**/version_test.vv' - 'editors/code/**' - '**/*.md' pull_request: paths-ignore: - '.github/**' - '!**/analyzer_tests.yml' + - '!**/version_test.vv' - 'editors/code/**' - '**/*.md' diff --git a/.github/workflows/install_ci.yml b/.github/workflows/install_ci.yml index d5b1b10e..a21981fa 100644 --- a/.github/workflows/install_ci.yml +++ b/.github/workflows/install_ci.yml @@ -4,11 +4,13 @@ on: push: paths: - 'install.vsh' - - '**/install.vsh' + - 'build.vsh' + - '**/install_ci.yml' pull_request: paths: - - '**/install.vsh' - - 'install_ci.yml' + - 'install.vsh' + - 'build.vsh' + - '**/install_ci.yml' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} @@ -37,5 +39,23 @@ jobs: if: runner.os != 'Windows' run: v -e "$(curl https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh -fsSL)" - - name: Check build success + - name: Verify webscript installation success + run: ~/.config/v-analyzer/bin/v-analyzer --version + + - name: Checkout v-analyzer + uses: actions/checkout@v4 + + - name: Cleanup and prepare installation + shell: bash + run: | + rm -r ~/.config/v-analyzer/bin/v-analyzer + mv ./install.vsh $TEMP/install.vsh + + # While the webscript installation step tests the general functionality of direct installation via the web, + # regressions related to the install script would only become visible AFTER pushing changes to the main branch. + # We reduce the potential for errors by simulating downloading the script and running it separately. + - name: Install via local script + run: cd $TEMP && v run install.vsh + + - name: Verify installation success run: ~/.config/v-analyzer/bin/v-analyzer --version