Skip to content

Commit

Permalink
feat: forester service
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeytimoshin committed Jun 3, 2024
1 parent a405219 commit dc59b33
Show file tree
Hide file tree
Showing 244 changed files with 16,499 additions and 658 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/forester-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
on:
push:
branches:
- main
paths:
- "forester/**"
- "photon-api/**"
- ".github/workflows/forester-tests.yml"
pull_request:
branches:
- main
paths:
- "forester/**"
- "photon-api/**"
- ".github/workflows/forester-tests.yml"
types:
- opened
- synchronize
- reopened
- ready_for_review

name: forester-tests

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
forester-tests:
name: forester-tests
if: github.event.pull_request.draft == false
runs-on: buildjet-2vcpu-ubuntu-2204
timeout-minutes: 30

steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: true

- name: Setup and build
uses: ./.github/actions/setup-and-build

- name: Run forester tests
run: |
source ./scripts/devenv.sh
mkdir -p ./target/deploy
cp ./third-party/solana-program-library/spl_noop.so ./target/deploy/spl_noop.so
RUST_MIN_STACK=8388608 RUSTFLAGS="-D warnings" cargo test --package forester
8 changes: 2 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,8 @@ jobs:
shell: bash
run: ./scripts/install.sh

- name: Build workspace
run: |
source ./scripts/devenv.sh
echo "Rust version: $(rustc --version)"
- name: Test workspace
run: |
source ./scripts/devenv.sh
RUST_MIN_STACK=8388608 RUSTFLAGS="-D warnings" cargo test --workspace --all-targets
echo "Rust version: $(rustc --version)"
RUST_MIN_STACK=8388608 RUSTFLAGS="-D warnings" cargo test --workspace --all-targets --exclude photon-api --exclude forester
Loading

0 comments on commit dc59b33

Please sign in to comment.