Skip to content

Tests

Tests #31

Workflow file for this run

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 6
- cron: '6 3 6 * *'
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