refactor: forester: batch ops #1122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "forester/**" | |
- "photon-api/**" | |
- ".github/workflows/forester-tests.yml" | |
pull_request: | |
branches: | |
- "**" | |
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: ubuntu-latest | |
timeout-minutes: 120 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Setup and build | |
uses: ./.github/actions/setup-and-build | |
- name: Clean build artifacts before tests | |
shell: bash | |
run: | | |
cargo clean | |
rm -rf target/debug/deps/* | |
- name: Check available disk space | |
shell: bash | |
run: | | |
df -h / | |
du -sh /home/runner/work/* | sort -hr | head -n 10 | |
- name: Run forester tests | |
run: | | |
source ./scripts/devenv.sh | |
npx nx test @lightprotocol/forester |