Skip to content

Tests

Tests #110

Workflow file for this run

name: Tests
on:
# Allow running manually
workflow_dispatch:
# Run automatically
push:
paths-ignore:
- '.github/**'
- 'LICENSE'
- '*.md'
- '*.yml'
pull_request:
paths-ignore:
- '.github/**'
- 'LICENSE'
- '*.md'
- '*.yml'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
# - windows-latest
# - macOS-latest
nim-version:
- stable
- 1.6.14
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v3
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-${{ matrix.nim-version }}
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v3
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ matrix.nim-version }}-${{ hashFiles('nasher.nimble') }}
- name: Set up Nim
uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim-version }}
- name: Install dependencies
run: nimble install -y --depsOnly
- name: Run Nimble tests
run: nimble test -y