Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/pq-receipt-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: pq-receipt-check contract

on:
pull_request:
paths:
- contracts/pq-receipt-check/**
- .github/workflows/pq-receipt-check.yml
push:
branches:
- main
paths:
- contracts/pq-receipt-check/**
- .github/workflows/pq-receipt-check.yml

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: contracts/pq-receipt-check
steps:
- uses: actions/checkout@v7

- name: Rust toolchain
run: |
rustup toolchain install stable --profile minimal --target wasm32v1-none
rustup default stable

- name: Tests (real testnet receipt)
run: cargo test --locked

# soroban-sdk 30 only builds wasm through stellar-cli 30+. Pinned release, checked by sha-256.
- name: stellar-cli 30.0.1
working-directory: ${{ runner.temp }}
run: |
curl -fsSL -o cli.tgz https://github.com/stellar/stellar-cli/releases/download/v30.0.1/stellar-cli-30.0.1-x86_64-unknown-linux-gnu.tar.gz
echo "48c70074020e09af0a3ebbd2bf62d53c9aec47935e49a112d3cd90fb4e37658f cli.tgz" | sha256sum -c -
tar -xzf cli.tgz stellar
echo "$RUNNER_TEMP" >> "$GITHUB_PATH"

- name: Wasm builds
run: stellar contract build
2 changes: 2 additions & 0 deletions contracts/pq-receipt-check/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target/
test_snapshots/
Loading