-
Notifications
You must be signed in to change notification settings - Fork 34
97 lines (79 loc) · 1.98 KB
/
tests.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Run Tests
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
Tests:
timeout-minutes: 30
name: Nim ${{ matrix.nim-version }}
runs-on: ubuntu-latest
strategy:
matrix:
nim-version: ['1.6.18', 'devel']
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports: # Needed so we don't need to run in a container
- 5432:5432
steps:
- uses: actions/checkout@v1
- uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim-version }}
- run: nimble install -y nimble && nimble install -y
- name: Run tests
run: testament all
env:
PGHOST: localhost
Benchmark:
timeout-minutes: 30
name: Nim ${{ matrix.nim-version }}
runs-on: ubuntu-latest
strategy:
matrix:
nim-version: ['1.6.18', 'devel']
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports: # Needed so we don't need to run in a container
- 5432:5432
steps:
- uses: actions/checkout@v1
- uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim-version }}
- run: nimble install -y nimble && nimble install -y
- name: Run benchmark
run: nimble benchmark
env:
PGHOST: localhost
Book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Book
run: docker-compose run book
Docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docs
run: docker-compose run docs