Skip to content

Walletconnect quicksign #13

Walletconnect quicksign

Walletconnect quicksign #13

Workflow file for this run

name: Cabinet Smart Contracts Continuous Integration
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pact-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Ensure bash is installed
run: |
sudo apt-get update && sudo apt-get install -y bash
echo "Bash version:"
bash --version
- name: Install OpenSSL Compatibility
run: |
sudo apt-get update
sudo apt-get install -y libssl3 libssl-dev
- name: Install pact
run: |
mkdir -p ${{ github.workspace }}/bin
cd ${{ github.workspace }}/bin
# Download the latest Pact binary
wget https://github.com/kadena-io/pact/releases/download/v4.11.0/pact-4.11.0-linux-22.04.zip
# Extract the tar.gz file
unzip pact-4.11.0-linux-22.04.zip
# Ensure the binary is executable
chmod +x pact
- name: Install z3
uses: pavpanchekha/[email protected]
with:
version: "4.8.10"
architecture: "x64"
distribution: "ubuntu-18.04"
- name: Verify Pact installation
run: |
file ${{ github.workspace }}/bin/pact
${{ github.workspace }}/bin/pact --version || echo "PACT is not executable!"
- name: Debug file paths and permissions
run: |
ls -la ${{ github.workspace }}/pact
ls -la ${{ github.workspace }}/bin
- name: Ensure tests.sh uses Bash
run: |
sed -i '1s|.*|#!/usr/bin/env bash|' ${{ github.workspace }}/pact/tests.sh
chmod +x ${{ github.workspace }}/pact/tests.sh
- name: Run tests.sh script
run: |
cd ${{ github.workspace }}/pact
PACT_BIN=${{ github.workspace }}/bin/pact
bash tests.sh > tests.log 2>&1
echo "Output of tests.sh:"
cat tests.log || echo "tests.log not found!"
# Check if the script succeeded
if grep -q "All files loaded successfully." tests.log; then
echo "✅ Pact tests passed"
exit 0
else
echo "❌ Pact tests failed"
exit 1
fi