Skip to content

Add streaming payments contract example #1

Add streaming payments contract example

Add streaming payments contract example #1

name: Streaming Payments Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- "streaming-payments/**"
- ".github/workflows/streaming-payments-tests.yml"
workflow_dispatch:
jobs:
streaming-payments-tests:
name: Streaming Payments Tests
runs-on: ubuntu-latest
env:
AZTEC_ENV: local-network
AZTEC_VERSION: 3.0.0-devnet.20251212
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Install Aztec CLI
run: |
curl -s https://install.aztec.network > tmp.sh
NON_INTERACTIVE=1 bash tmp.sh
rm tmp.sh
- name: Update path
run: echo "$HOME/.aztec/bin" >> $GITHUB_PATH
- name: Set Aztec version
run: aztec-up ${{ env.AZTEC_VERSION }}
- name: Run setup script (download Token contract and compile)
working-directory: streaming-payments
run: |
chmod +x scripts/setup-token.sh
./scripts/setup-token.sh
timeout-minutes: 15
- name: Run Noir unit and integration tests (TXE)
working-directory: streaming-payments
run: aztec test --package streaming_payments_contract
timeout-minutes: 10
- name: Upload test results if failed
if: failure()
uses: actions/upload-artifact@v4
with:
name: streaming-payments-test-logs
path: |
streaming-payments/target/**
streaming-payments/.deps/**
retention-days: 7
- name: Cleanup
if: always()
run: |
echo "Cleaning up..."
pkill -f "aztec" || true
docker stop $(docker ps -q) || true
docker rm $(docker ps -a -q) || true