-
Notifications
You must be signed in to change notification settings - Fork 11
73 lines (71 loc) · 1.81 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
unit-test:
name: unit tests
runs-on: ubuntu-latest
strategy:
matrix:
version: [
0.0.5,
0.0.6,
0.0.7,
0.0.8,
0.0.9,
0.0.10,
0.0.11
]
container:
image: amutake/satysfi:${{ matrix.version }}
steps:
- uses: actions/checkout@v1
- name: Install Satyrographos dependencies
run: |
export HOME=/root
eval $(opam env)
opam update
opam pin add satysfi-base.opam "file://${PWD}"
satyrographos install -l base
- name: Run tests
run: |
export HOME=/root
eval $(opam env)
cd test && sh run-test.sh -v
- if: always()
name: Install Apt dependencies
run: apt-get update && apt-get install -y xz-utils liblzma-dev
- name: Upload artifact
uses: actions/upload-artifact@master
with:
name: satysfi-test-report
path: test/report.txt
regression-test:
name: Regression tests
runs-on: ubuntu-latest
container:
image: zeptometer/satysfi-yarn-diff-pdf:latest
strategy:
matrix:
satysfi-version:
[
0.0.5,
0.0.6,
0.0.7,
]
steps:
- uses: actions/checkout@v1
- name: Install Yarn dependencies
run: yarn install
- name: Install Satyrographos dependencies
run: |
export HOME=/root
eval $(opam env)
opam update
opam pin add satysfi ${{ matrix.satysfi-version }}
opam pin add --verbose --yes "."
satyrographos install -l base
- name: Run regression tests
run: |
export HOME=/root
eval $(opam env)
yarn test --ci