Repository navigation
Stellar Fork CI #71
This file contains hidden or 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
| name: Stellar Fork CI | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 6 * * *' | |
| push: | |
| paths: | |
| - 'infrastructure/stellar-fork/**' | |
| - 'scripts/stellar-fork/**' | |
| - 'docs/infrastructure/stellar-fork/**' | |
| - 'docs/operations/**' | |
| - 'contracts/**' | |
| - '.github/workflows/stellar-fork-ci.yml' | |
| pull_request: | |
| paths: | |
| - 'infrastructure/stellar-fork/**' | |
| - 'scripts/stellar-fork/**' | |
| - 'docs/infrastructure/stellar-fork/**' | |
| - 'docs/operations/**' | |
| - 'contracts/**' | |
| jobs: | |
| docker-healthcheck: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run docker health check | |
| run: ./scripts/stellar-fork/healthcheck.sh | |
| - name: Archive health response | |
| if: always() | |
| run: | | |
| mkdir -p artifacts | |
| cp /tmp/stellar-health.json artifacts/stellar-health.json || true | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: stellar-health | |
| path: artifacts/ | |
| soroban-contracts: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| defaults: | |
| run: | |
| working-directory: contracts/sample-counter | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: contracts/sample-counter | |
| - name: Cargo fmt check | |
| run: cargo fmt -- --check | |
| - name: Cargo test | |
| run: cargo test --locked | |
| - name: Cargo build (wasm) | |
| run: cargo build --release --target wasm32-unknown-unknown --locked |