analyzer: support selective imports and improve module resolution (re… #114
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: | |
| push: | |
| paths: | |
| - '**.v' | |
| - '**.vsh' | |
| - '**/lint.yml' | |
| pull_request: | |
| paths: | |
| - '**.v' | |
| - '**.vsh' | |
| - '**/lint.yml' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| fmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install V | |
| id: install-v | |
| uses: vlang/setup-v@v1.4 | |
| with: | |
| check-latest: true | |
| - name: Checkout v-analyzer | |
| uses: actions/checkout@v4 | |
| - name: Verify formatting | |
| run: | | |
| set +e | |
| v fmt -c . | |
| exit_code=$? | |
| # Don't fail on internal errors. | |
| if [[ $exit_code -ne 0 && $exit_code -ne 5 ]]; then | |
| v fmt -diff . | |
| exit 1 | |
| fi |