fix: function param shadowing and nested inline call arg resolution #223
Workflow file for this run
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: Quality Control | |
| on: [push, pull_request] | |
| jobs: | |
| check: | |
| name: Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v6 | |
| - name: Install stable toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| prefix-key: silverscript-v1 | |
| shared-key: ${{ github.job }} | |
| cache-on-failure: "false" | |
| cache-bin: "false" | |
| cache-all-crates: "false" | |
| cache-workspace-crates: "true" | |
| add-job-id-key: "false" | |
| save-if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} | |
| - name: Run cargo check | |
| run: cargo check --tests --workspace --benches | |
| test: | |
| name: Test Suite | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v6 | |
| - name: Install stable toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| prefix-key: silverscript-v1 | |
| shared-key: ${{ github.job }} | |
| cache-on-failure: "false" | |
| cache-bin: "false" | |
| cache-all-crates: "false" | |
| cache-workspace-crates: "true" | |
| add-job-id-key: "false" | |
| save-if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} | |
| - name: Install cargo-nextest | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-nextest | |
| - name: Run cargo test regular features | |
| run: cargo nextest run --release --workspace | |
| lints: | |
| name: Lints | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v6 | |
| - name: Install stable toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| prefix-key: silverscript-v1 | |
| shared-key: ${{ github.job }} | |
| cache-on-failure: "false" | |
| cache-bin: "false" | |
| cache-all-crates: "false" | |
| cache-workspace-crates: "true" | |
| add-job-id-key: "false" | |
| save-if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} | |
| - name: Run cargo fmt | |
| run: cargo fmt --all -- --check | |
| - name: Run cargo clippy | |
| run: cargo clippy --workspace --tests --benches --examples -- -D warnings | |
| tree-sitter-test: | |
| name: Tree-sitter Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v6 | |
| - name: Install stable toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| prefix-key: silverscript-v1 | |
| shared-key: ${{ github.job }} | |
| cache-on-failure: "false" | |
| cache-bin: "false" | |
| cache-all-crates: "false" | |
| cache-workspace-crates: "true" | |
| add-job-id-key: "false" | |
| save-if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} | |
| - name: Run tree-sitter tests | |
| run: cargo test --manifest-path tree-sitter/Cargo.toml |