-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.09 KB
/
tests.yml
File metadata and controls
47 lines (40 loc) · 1.09 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Tests
on:
push:
branches:
- master
path-ignore:
- 'README.md'
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- master
path-ignore:
- 'README.md'
jobs:
build:
if: "github.event.pull_request.draft == false && ! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
strategy:
matrix:
nim: ['1.6.12', 'devel']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v1
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}
if: runner.os != 'Windows'
- name: Set up Nim
uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim }}
- name: Install dependencies
run: nimble install -d -y
- name: Run tests
run: nimble test
- name: Try to build docs
run: nimble docs