Skip to content

Commit

Permalink
👷 Experimenting with pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lukacan authored and lukacan committed Oct 5, 2023
1 parent 0134183 commit e4238bb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/actions/setup-anchor/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: "Setup Anchor"
description: "Setup Anchor"

runs:
using: "composite"
steps:
- uses: actions/cache@v3
name: Cache Anchor Tool Suite
Expand Down
8 changes: 8 additions & 0 deletions .github/actions/setup-honggfuzz/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: "Setup Honggfuzz"
description: "Setup Honggfuzz"

runs:
steps:
- name: Install honggfuzz
run: cargo install honggfuzz
shell: bash
1 change: 0 additions & 1 deletion .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ outputs:
value: ${{ steps.rust-version.outputs.RUSTC_HASH }}

runs:
using: "composite"
steps:
- name: Install system packages
run: sudo apt-fast update && sudo apt-fast install -y build-essential libudev-dev
Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/run_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ on:
workflow_dispatch:
pull_request:
push:
branches: [master]
# push:
# branches: [master]

name: Test Escrow and Turnstile
name: Test Escrow, Turnstile and Fuzzer

env:
SOLANA_CLI_VERSION: 1.16.6
Expand Down Expand Up @@ -43,3 +44,16 @@ jobs:
- 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

0 comments on commit e4238bb

Please sign in to comment.