Skip to content

💚 reverted change #37

💚 reverted change

💚 reverted change #37

Workflow file for this run

on:
workflow_dispatch:
pull_request:
push:
# push:
# branches: [master]
name: Test Escrow, Turnstile and Fuzzer
env:
SOLANA_CLI_VERSION: 1.16.6
ANCHOR_VERSION: 0.28.0
jobs:
test_escrow:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-rust/
- uses: ./.github/actions/setup-solana/
- uses: ./.github/actions/setup-anchor/
id: rust-setup
- uses: Swatinem/rust-cache@v2
name: Cache Rust and it's packages
- name: Build Escrow
working-directory: examples/escrow
run: anchor build
- name: Test Escrow
working-directory: examples/escrow
run: cargo run --manifest-path ../../Cargo.toml test
test_turnstile:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-rust/
- uses: ./.github/actions/setup-solana/
- uses: ./.github/actions/setup-anchor/
id: rust-setup
- uses: Swatinem/rust-cache@v2
name: Cache Rust and it's packages
- name: Build Turnstile
working-directory: examples/turnstile
run: anchor build
- name: Test Turnstile
working-directory: examples/turnstile
run: cargo run --manifest-path ../../Cargo.toml test
test_fuzzer:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-rust/
- uses: ./.github/actions/setup-solana/
- uses: ./.github/actions/setup-honggfuzz/
id: rust-setup
- uses: Swatinem/rust-cache@v2
name: Cache Rust and it's packages
- name: Test Fuzzer
working-directory: examples/fuzzer
run: HFUZZ_RUN_ARGS="-t 10 -N 1000" cargo run --manifest-path ../../Cargo.toml fuzz run -w fuzz_target ; if [ $? -eq 1 ]; then echo "Tes OK"; else echo "Test not OK"; fi