Bump @napi-rs/cli from 2.18.4 to 3.7.0 in /sdk/node #48
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: CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| OPA_VERSION: "0.70.0" | |
| jobs: | |
| verify: | |
| name: Verify | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: "8.0.x" | |
| - name: Install stable Rust | |
| run: | | |
| rustup toolchain install stable --profile minimal --component rustfmt --component clippy | |
| rustup default stable | |
| - name: Install OPA | |
| run: | | |
| curl -fsSL -o /usr/local/bin/opa \ | |
| "https://openpolicyagent.org/downloads/v${OPA_VERSION}/opa_linux_amd64_static" | |
| chmod +x /usr/local/bin/opa | |
| opa version | |
| - name: Rust checks | |
| env: | |
| AGENT_CONTROL_REQUIRE_OPA: "1" | |
| run: | | |
| cargo fmt --all -- --check | |
| cargo clippy --workspace --all-targets -- -D warnings | |
| cargo test --workspace | |
| - name: Python SDK + generator | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ./sdk/python ./generator pytest | |
| pytest sdk/python generator | |
| - name: Node SDK | |
| working-directory: sdk/node | |
| run: | | |
| npm ci | |
| npm test | |
| - name: .NET SDK | |
| working-directory: sdk/dotnet | |
| run: | | |
| dotnet build AgentControlSpecification.sln | |
| dotnet run --project tests/AgentControlSpecification.Tests |