Skip to content

IPO QDuel

IPO QDuel #329

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: ContractVerify
on:
push:
branches: [ "main", "develop" ]
paths:
- 'src/contracts/*.h'
- '!src/contracts/math_lib.h'
- '!src/contracts/qpi.h'
- '!src/contracts/TestExample*.h'
- '.github/workflows/contract-verify.yml'
pull_request:
branches: [ "main", "develop" ]
paths:
- 'src/contracts/*.h'
- '!src/contracts/math_lib.h'
- '!src/contracts/qpi.h'
- '!src/contracts/TestExample*.h'
- '.github/workflows/contract-verify.yml'
jobs:
contract_verify_job:
runs-on: ubuntu-latest
timeout-minutes: 15 # Sometimes the parser can get stuck
name: Verify smart contract files
steps:
# Checkout repo to use files of the repo as input for container action
- name: Checkout
uses: actions/checkout@v4
- name: Find all contract files to verify
id: filepaths
run: |
files=$(find src/contracts/ -maxdepth 1 -type f -name "*.h" ! -name "*TestExample*" ! -name "*math_lib*" ! -name "*qpi*" -printf "%p\n" | paste -sd, -)
echo "contract-filepaths=$files" >> "$GITHUB_OUTPUT"
- name: Contract verify action step
id: verify
uses: Franziska-Mueller/[email protected]
with:
filepaths: '${{ steps.filepaths.outputs.contract-filepaths }}'