Skip to content

V2 Refinements

V2 Refinements #310

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
push:
branches:
- main
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test-pact:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Get pact binary
run: |
mkdir bin
cd bin
wget https://github.com/kadena-io/pact/releases/download/v4.7.1/pact-4.7.1-linux-20.04.zip
unzip "pact*.zip"
chmod +x pact
cd ..
- name: Install z3 (ubuntu-18.04)
uses: pavpanchekha/[email protected]
with:
version: "4.8.10"
architecture: "x64"
distribution: "ubuntu-18.04"
- name: Test pact/marmalade.repl
run: |
bin/pact -t pact/marmalade.repl > out.log 2>&1
cat out.log
r=`tail -1 out.log | grep "Load successful"`
if [ -n "$r" ]; then exit 0; else echo "Pact run failed."; exit 1; fi
- name: Test concrete collection-policy
run: |
bin/pact -t pact/concrete-policies/collection-policy/collection-policy-v1.repl > out.log 2>&1
cat out.log
r=`tail -1 out.log | grep "Load successful"`
if [ -n "$r" ]; then exit 0; else echo "Pact run failed."; exit 1; fi
- name: Test concrete non-fungible-policy
run: |
bin/pact -t pact/concrete-policies/non-fungible-policy/non-fungible-policy-v1.repl > out.log 2>&1
cat out.log
r=`tail -1 out.log | grep "Load successful"`
if [ -n "$r" ]; then exit 0; else echo "Pact run failed."; exit 1; fi
- name: Test concrete royalty-policy
run: |
bin/pact -t pact/concrete-policies/royalty-policy/royalty-policy-v1.repl > out.log 2>&1
cat out.log
r=`tail -1 out.log | grep "Load successful"`
if [ -n "$r" ]; then exit 0; else echo "Pact run failed."; exit 1; fi
- name: Test concrete guard-policy
run: |
bin/pact -t pact/concrete-policies/guard-policy/guard-policy-v1.repl > out.log 2>&1
cat out.log
r=`tail -1 out.log | grep "Load successful"`
if [ -n "$r" ]; then exit 0; else echo "Pact run failed."; exit 1; fi