Tests #35
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: Tests | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'LICENSE.*' | |
| - 'README.*' | |
| - '.github/ISSUE-TEMPLATE/**' | |
| pull_request: | |
| paths-ignore: | |
| - 'LICENSE.*' | |
| - 'README.*' | |
| - '.github/ISSUE-TEMPLATE/**' | |
| schedule: # at 03:06 on day-of-month 7 | |
| - cron: '6 3 7 * *' | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| nim-version: | |
| - '1.6.x' | |
| - '2.0.x' | |
| - '2.2.x' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: jiro4989/setup-nim-action@v1 | |
| name: Set up Nim | |
| with: | |
| nim-version: ${{ matrix.nim-version }} | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Ensure PCRE available | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| run: | | |
| sudo apt update && sudo apt install libpcre3-dev | |
| - name: Run tests on POSIX | |
| if: ${{ matrix.os != 'windows-latest' }} | |
| run: | | |
| nim --version | |
| nimble install -Y | |
| nimble test -Y --cursorInference:off | |
| - name: Run tests on Windows | |
| if: ${{ matrix.os == 'windows-latest' }} | |
| run: | | |
| $env:HOME = $env:USERPROFILE | |
| echo "Set HOME to $HOME" | |
| nim --version | |
| nimble install -Y | |
| nimble test -Y --cursorInference:off |