-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (48 loc) · 2.28 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
name: CI-pact-util-lib
on:
push:
workflow_dispatch:
jobs:
UT:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Pact
run: |
wget -nv https://github.com/kadena-io/pact/releases/download/v4.9.0/pact-4.9.0-linux-20.04.zip
unzip pact-4.9.0-linux-20.04.zip pact -d .bin
chmod +x .bin/pact
- name: Print hashes
run: .bin/pact pact/print-mod-hashs.repl
- name: Test util-chain-data
run: |
.bin/pact pact/tests_repl/util-chain-data.repl 2>&1 | tee out.txt
if [ "$(tail -1 out.txt)" = "Load successful" ]; then echo "OK"; exit 0; else echo "Fail";exit 1; fi
- name: Test util-lists
run: |
.bin/pact pact/tests_repl/util-lists-test.repl 2>&1 | tee out.txt
if [ "$(tail -1 out.txt)" = "Load successful" ]; then echo "OK"; exit 0; else echo "Fail";exit 1; fi
- name: Test util-strings
run: |
.bin/pact pact/tests_repl/util-strings-test.repl 2>&1 | tee out.txt
if [ "$(tail -1 out.txt)" = "Load successful" ]; then echo "OK"; exit 0; else echo "Fail";exit 1; fi
- name: Test util-math
run: |
.bin/pact pact/tests_repl/util-math-test.repl 2>&1 | tee out.txt
if [ "$(tail -1 out.txt)" = "Load successful" ]; then echo "OK"; exit 0; else echo "Fail";exit 1; fi
- name: Test util-random
run: |
.bin/pact pact/tests_repl/util-random-test.repl 2>&1 | tee out.txt
if [ "$(tail -1 out.txt)" = "Load successful" ]; then echo "OK"; exit 0; else echo "Fail";exit 1; fi
- name: Test util-time
run: |
.bin/pact pact/tests_repl/util-time-test.repl 2>&1 | tee out.txt
if [ "$(tail -1 out.txt)" = "Load successful" ]; then echo "OK"; exit 0; else echo "Fail";exit 1; fi
- name: Test util-fungible
run: |
.bin/pact pact/tests_repl/util-fungible-test.repl 2>&1 | tee out.txt
if [ "$(tail -1 out.txt)" = "Load successful" ]; then echo "OK"; exit 0; else echo "Fail";exit 1; fi
- name: Test util-zk
run: |
.bin/pact pact/tests_repl/util-zk-test.repl 2>&1 | tee out.txt
if [ "$(tail -1 out.txt)" = "Load successful" ]; then echo "OK"; exit 0; else echo "Fail";exit 1; fi