Skip to content

ci: setup-nim-action v2 #112

ci: setup-nim-action v2

ci: setup-nim-action v2 #112

Workflow file for this run

---
name: test
"on":
push:
branches:
- master
paths-ignore:
- README*
- LICENSE
pull_request:
paths-ignore:
- README*
- LICENSE
jobs:
test-cross-platform:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
nim-version:
- 'stable'
- 'devel'
exclude:
- os: windows-latest
nim-version: devel
steps:
- uses: actions/checkout@v4
- uses: jiro4989/setup-nim-action@v2
with:
nim-version: ${{ matrix.nim-version }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: nimble install -Y
- run: nimble build -Y
- run: nimble buildjs
- run: nimble examples
- run: nimble tests
test-multi-version:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
nim-version:
- '1.4.x'
- '1.6.x'
- '2.0.x'
- 'stable'
steps:
- uses: actions/checkout@v4
- uses: jiro4989/setup-nim-action@v2
with:
nim-version: ${{ matrix.nim-version }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: nimble install -Y
- run: nimble build -Y
- run: nimble buildjs
- run: nimble examples
- run: nimble tests
test-docs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
nim-version:
- 'stable'
steps:
- uses: actions/checkout@v4
- uses: jiro4989/setup-nim-action@v2
with:
nim-version: ${{ matrix.nim-version }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: nimble install -Y
- run: nimble docs