Add /-r, /-c and /-f #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-5/releases/download/5.0/pact-5.0-linux-x64.tar.gz | |
mkdir -p .bin/ | |
tar -xz -C .bin/ -f pact-5.0-linux-x64.tar.gz ./pact | |
chmod +x .bin/pact | |
- name: Print hashes | |
run: .bin/pact -t pact/print-mod-hashs.repl | grep -e "^H:" | |
- name: Test util-chain-data | |
run: | | |
.bin/pact -t pact/tests_repl/util-chain-data.repl 2>&1 | tee out.txt | |
if ! grep -q "FAILURE" out.txt; then echo "OK"; exit 0; else echo "Fail";exit 1; fi | |
- name: Test util-lists | |
run: | | |
.bin/pact -t pact/tests_repl/util-lists-test.repl 2>&1 | tee out.txt | |
if ! grep -q "FAILURE" out.txt; then echo "OK"; exit 0; else echo "Fail";exit 1; fi | |
- name: Test util-strings | |
run: | | |
.bin/pact -t pact/tests_repl/util-strings-test.repl 2>&1 | tee out.txt | |
if ! grep -q "FAILURE" out.txt; then echo "OK"; exit 0; else echo "Fail";exit 1; fi | |
- name: Test util-math | |
run: | | |
.bin/pact -t pact/tests_repl/util-math-test.repl 2>&1 | tee out.txt | |
if ! grep -q "FAILURE" out.txt; then echo "OK"; exit 0; else echo "Fail";exit 1; fi | |
- name: Test util-random | |
run: | | |
.bin/pact -t pact/tests_repl/util-random-test.repl 2>&1 | tee out.txt | |
if ! grep -q "FAILURE" out.txt; then echo "OK"; exit 0; else echo "Fail";exit 1; fi | |
- name: Test util-time | |
run: | | |
.bin/pact -t pact/tests_repl/util-time-test.repl 2>&1 | tee out.txt | |
if ! grep -q "FAILURE" out.txt; then echo "OK"; exit 0; else echo "Fail";exit 1; fi | |
- name: Test util-fungible | |
run: | | |
.bin/pact -t pact/tests_repl/util-fungible-test.repl 2>&1 | tee out.txt | |
if ! grep -q "FAILURE" out.txt; then echo "OK"; exit 0; else echo "Fail";exit 1; fi | |
- name: Test util-zk | |
run: | | |
.bin/pact -t pact/tests_repl/util-zk-test.repl 2>&1 | tee out.txt | |
if ! grep -q "FAILURE" out.txt; then echo "OK"; exit 0; else echo "Fail";exit 1; fi |