Skip to content

chore(tokens,devnet): bump Panurus to v0.26.0 and Fabric-X committer to v1.0.7 #54

chore(tokens,devnet): bump Panurus to v0.26.0 and Fabric-X committer to v1.0.7

chore(tokens,devnet): bump Panurus to v0.26.0 and Fabric-X committer to v1.0.7 #54

Workflow file for this run

#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
name: Token Sample Tests
on:
push:
branches: [ "main" ]
paths: [ "tokens/**", "devnet/**" ]
pull_request:
branches: [ "main" ]
paths: [ "tokens/**", "devnet/**" ]
workflow_dispatch:
jobs:
test:
name: Token Samples Tests
runs-on: ubuntu-latest
strategy:
matrix:
include:
- platform: "fabricx"
htlc_test: "1"
- platform: "fabric3"
- platform: "xdev"
htlc_test: "1"
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: tokens/go.mod
cache-dependency-path: tokens/go.sum
- name: Verify Go installation
run: |
go version
echo "GOPATH: $GOPATH"
echo "GOROOT: $GOROOT"
- name: Set up Python
if: ${{ matrix.platform == 'fabricx' }}
uses: actions/setup-python@v4
with:
# ansible-core supports controller Python 3.12-3.14; "3.x" now resolves to 3.15,
# which ansible-core 2.21 crashes on at import time.
python-version: "3.13"
- name: Install Ansible
if: ${{ matrix.platform == 'fabricx' }}
run: |
python -m pip install --upgrade pip
# Pinned to the versions the fabricx flow is verified against; unpinned, a new
# release can break CI on its own (as ansible-core 2.21's stricter templating did).
pip install ansible==14.5.0 ansible-core==2.21.5
ansible --version
- name: Run samples tests on ${{ matrix.platform }}
env:
PLATFORM: ${{ matrix.platform }}
HTLC_TEST: ${{ matrix.htlc_test }}
working-directory: tokens
run: make install-prerequisites test
test-swap:
name: Token Samples HTLC Swap Tests
runs-on: ubuntu-latest
strategy:
matrix:
platform: [ "evm", "xevm" ]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: tokens/go.mod
cache-dependency-path: tokens/go.sum
# forge and cast build and deploy the EVM contracts; anvil itself runs in a container.
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: v1.8.1
- name: Run HTLC swap test on ${{ matrix.platform }}
env:
PLATFORM: ${{ matrix.platform }}
working-directory: tokens
run: make install-prerequisites test-swap