fix(stalled): provide right key values in move_stalled_jobs_to_wait #3387
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: Rust Tests | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master, feat/v6] | |
| concurrency: | |
| group: rust-test-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| should_run: ${{ steps.filter.outputs.rust }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - uses: dorny/paths-filter@v4.0.3 | |
| id: filter | |
| with: | |
| filters: | | |
| rust: | |
| - 'rust/**' | |
| - 'src/commands/**' | |
| - '.github/workflows/rust-test.yml' | |
| test: | |
| needs: changes | |
| if: needs.changes.outputs.should_run == 'true' | |
| name: Rust Tests | |
| runs-on: ubuntu-latest | |
| services: | |
| redis: | |
| image: redis:8-alpine | |
| ports: | |
| - 6379:6379 | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: lts/* | |
| cache: 'yarn' | |
| - name: Generate rawScripts (resolve Lua includes) | |
| run: | | |
| yarn install --frozen-lockfile --non-interactive | |
| yarn generate:raw:scripts | |
| yarn copy:lua:rust | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - name: Cache Cargo registry and build | |
| uses: actions/cache@v6.1.0 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| rust/target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('rust/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo- | |
| - name: Check formatting | |
| working-directory: rust | |
| run: cargo fmt --check | |
| - name: Run Clippy | |
| working-directory: rust | |
| run: cargo clippy --all-targets -- -D warnings | |
| - name: Build | |
| working-directory: rust | |
| run: cargo build --all-targets | |
| - name: Run tests | |
| working-directory: rust | |
| env: | |
| REDIS_URL: redis://127.0.0.1:6379 | |
| run: cargo test --all-targets | |
| - name: Build documentation | |
| working-directory: rust | |
| env: | |
| RUSTDOCFLAGS: '-D missing_docs' | |
| run: cargo doc --no-deps |