Skip to content

Commit

Permalink
ci: extend coverage in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Mar 26, 2024
1 parent 9e76289 commit 2499012
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/analyzer_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/install_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -37,5 +39,14 @@ jobs:
if: runner.os != 'Windows'
run: v -e "$(curl https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh -fsSL)"

- name: Checkout v-analyzer
uses: actions/checkout@v4

# 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: mv install.vsh /tmp/install.vsh && cd /tmp/ && v run install.vsh

- name: Check build success
run: ~/.config/v-analyzer/bin/v-analyzer --version

0 comments on commit 2499012

Please sign in to comment.