Skip to content

feat!(ssz): finish ASM serialization migration #16

feat!(ssz): finish ASM serialization migration

feat!(ssz): finish ASM serialization migration #16

Workflow file for this run

name: Functional tests
on:
pull_request:
merge_group:
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: {}
jobs:
lint:
name: Lint functional test files
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
with:
working-directory: functional-tests
activate-environment: true
enable-cache: true
cache-suffix: "functional-tests"
python-version: "3.12"
- name: Check formatting
working-directory: functional-tests
run: uv run ruff format --check
- name: Check types
working-directory: functional-tests
run: uv run ty check
- name: Lint
working-directory: functional-tests
run: uv run ruff check
run:
name: Run functional tests
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
with:
persist-credentials: false
- name: Install bitcoind
env:
BITCOIND_VERSION: "30.2"
BITCOIND_ARCH: "x86_64-linux-gnu"
run: |
curl -fsSLO --proto "=https" --tlsv1.3 "https://bitcoincore.org/bin/bitcoin-core-$BITCOIND_VERSION/bitcoin-$BITCOIND_VERSION-$BITCOIND_ARCH.tar.gz"
curl -fsSLO --proto "=https" --tlsv1.3 "https://bitcoincore.org/bin/bitcoin-core-$BITCOIND_VERSION/SHA256SUMS"
sha256sum --ignore-missing --check SHA256SUMS
tar xzf "bitcoin-$BITCOIND_VERSION-$BITCOIND_ARCH.tar.gz"
sudo install -m 0755 -t /usr/local/bin bitcoin-"$BITCOIND_VERSION"/bin/*
bitcoind --version
rm -rf SHA256SUMS "bitcoin-$BITCOIND_VERSION" "bitcoin-$BITCOIND_VERSION-$BITCOIND_ARCH.tar.gz"
- name: Install Rust toolchain
run: |
rustup toolchain install nightly --profile minimal
rustup default nightly
- name: Rust cache
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
with:
cache-on-failure: true
- name: Install uv
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
with:
working-directory: functional-tests
activate-environment: true
enable-cache: true
cache-suffix: "functional-tests"
python-version: "3.12"
- name: Run functional tests
env:
NO_COLOR: "1"
LOG_LEVEL: "info"
run: |
cd functional-tests
./run_test.sh
functional-success:
name: Check that functional tests pass
runs-on: ubuntu-latest
if: always()
needs:
- lint
- run
timeout-minutes: 30
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # release/v1
with:
jobs: ${{ toJSON(needs) }}