-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (32 loc) · 995 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: RunTests
on:
pull_request:
types:
- '*'
push:
schedule:
# Every week: https://crontab.guru/#0_0_*_*_0
- cron: '0 0 * * 0'
jobs:
run_tests:
# runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
nim: ['devel', 'version-1-4']
steps:
- uses: actions/checkout@v2
- uses: alaviss/[email protected]
with:
path: 'nim'
version: ${{ matrix.nim }}
- name: Pull kaushalmodi's global config.nims
run: nim pullConfig
- name: Run tests
run: |
# --accept to say Yes to prompts like "Prompt: No local packages.json found, download it from internet? [y/N]"
nimble install --depsOnly --accept
# Test installing PROGNAME using nimble.
# --reject denies the offer to install from PROGNAME@#head if "nimble install PROGNAME" fails.
nimble install --reject ntangle