Merge pull request #17 from spytheman/ci_fix_check.vsh #12
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: CI Checks | |
| on: | |
| push: | |
| paths: | |
| - "**.v" | |
| - "**.vsh" | |
| - "**.md" | |
| - "**/ci.yml" | |
| pull_request: | |
| paths: | |
| - "**.v" | |
| - "**.vsh" | |
| - "**.md" | |
| - "**/ci.yml" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| linting: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Install V | |
| id: install-v | |
| uses: vlang/setup-v@v1.4 | |
| with: | |
| check-latest: true | |
| - name: Checkout the gui module | |
| uses: actions/checkout@v4 | |
| with: | |
| path: gui | |
| - name: Verify formatting | |
| run: v fmt -verify -inprocess gui/ | |
| - name: Check formatting of MD files | |
| run: v check-md gui/ | |
| - name: Check compilation of examples | |
| run: v gui/examples/_check.vsh | |
| compiling-with-prod: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Install V | |
| id: install-v | |
| uses: vlang/setup-v@v1.4 | |
| with: | |
| check-latest: true | |
| - name: Checkout the gui module | |
| uses: actions/checkout@v4 | |
| with: | |
| path: gui | |
| - name: Check compilation of examples with -prod | |
| run: v gui/examples/_build.vsh |