-
Notifications
You must be signed in to change notification settings - Fork 16
66 lines (63 loc) · 1.4 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: test
on:
# Allow running manually
workflow_dispatch:
# Run automatically
push:
branches:
- master
paths-ignore:
- 'LICENSE'
- '*.md'
- '.github/**'
- '*.yml'
pull_request:
branches:
- master
types:
- opened
- reopened
- synchronize
paths-ignore:
- '.github/**'
- 'LICENSE'
- '*.md'
- '*.yml'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
nim:
- 1.6.14
name: Nim ${{ matrix.nim }} (${{ matrix.os }})
steps:
- uses: actions/checkout@v2
- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v2
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-${{ matrix.nim }}
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v2
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}
- name: Set up Nim
uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim }}
- name: Print Nim version
run: nim -v
- name: Print Nimble version
run: nimble -v
- name: Run Nimble tests
run: nimble test -y
- name: Build with Nimble
run: nimble build -y