-
Notifications
You must be signed in to change notification settings - Fork 18
59 lines (50 loc) · 1.22 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
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
nim:
- 1.0.6
- stable
# - devel
name: Test on nim ${{ matrix.nim }}
steps:
- name: Checkout source code
uses: actions/checkout@v1
- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v1
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-stable
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v1
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-stable
- name: Setup nim
uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim }}
- name: Setup postgresql
uses: harmon758/postgresql-action@v1
with:
postgresql version: '10'
postgresql user: 'test'
postgresql password: 'test'
postgresql db: 'test'
- name: Install dependencies
run: |
nimble refresh
nimble install -y
nimble install karax -y
nimble install jester -y
- name: Run test
run: nimble test
env:
PGPASSWORD: test
- name: Build examples
run: nimble buildexamples