2025-03-26 13:13:29 +01:00

52 lines
1.0 KiB
YAML

name: CI
on: [push, pull_request]
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check `nph` formatting
uses: arnetheduck/nph-action@v1
with:
version: 0.6.1
options: "./"
fail: true
suggest: true
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
nim: [2.0.14]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: iffy/install-nim@v4
with:
version: ${{ matrix.nim }}
- name: Enable git long paths
run: |
git config --system core.longpaths true
- name: Update nimble
run: |
nimble install nimble
nimble --version
- name: Use updated nimble version on Windows
if: contains(matrix.os, 'windows')
run: |
del $HOME\.nimble\bin\nimble.exe
nimble --version
- name: Build
run: nimble build -y
- name: Test
run: nimble test -y