Thread EC KV read through the request and recover orphaned cookies #2092
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: "Run Format" | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main, "feature/**"] | |
| permissions: | |
| contents: read | |
| jobs: | |
| format-rust: | |
| name: cargo fmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Retrieve Rust version | |
| id: rust-version | |
| run: echo "rust-version=$(grep '^rust ' .tool-versions | awk '{print $2}')" >> $GITHUB_OUTPUT | |
| shell: bash | |
| - name: Set up rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ steps.rust-version.outputs.rust-version }} | |
| target: wasm32-wasip1,wasm32-unknown-unknown | |
| components: "clippy, rustfmt" | |
| cache-shared-key: cargo-${{ runner.os }} | |
| - name: Run cargo fmt | |
| uses: actions-rust-lang/rustfmt@v1 | |
| - name: Run cargo clippy (Fastly — wasm32-wasip1) | |
| run: cargo clippy-fastly | |
| - name: Run cargo clippy (Axum — native) | |
| run: cargo clippy-axum | |
| - name: Run cargo clippy (Cloudflare — native) | |
| run: cargo clippy-cloudflare | |
| - name: Run cargo clippy (Cloudflare — wasm32-unknown-unknown) | |
| run: cargo clippy-cloudflare-wasm | |
| - name: Run cargo clippy (Spin — native) | |
| run: cargo clippy-spin-native | |
| - name: Run cargo clippy (Spin — wasm32-wasip1) | |
| run: cargo clippy-spin-wasm | |
| - name: Run host-target CLI clippy | |
| run: cargo clippy --package trusted-server-cli --target x86_64-unknown-linux-gnu --all-targets --all-features -- -D warnings | |
| # The codegen crate is a workspace member but is not a default member and | |
| # is not covered by any adapter-scoped alias, so lint it explicitly. | |
| - name: Run host-target OpenRTB codegen clippy | |
| run: cargo clippy --package trusted-server-openrtb-codegen --target x86_64-unknown-linux-gnu --all-targets -- -D warnings | |
| format-typescript: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: crates/trusted-server-js/lib | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Retrieve Node.js version | |
| id: node-version | |
| working-directory: . | |
| run: echo "node-version=$(grep '^nodejs ' .tool-versions | awk '{print $2}')" >> $GITHUB_OUTPUT | |
| shell: bash | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ steps.node-version.outputs.node-version }} | |
| cache: "npm" | |
| cache-dependency-path: crates/trusted-server-js/lib/package.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run ESLint | |
| run: npm run lint | |
| - name: Run Prettier (check) | |
| run: npm run format | |
| format-docs: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: docs | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Retrieve Node.js version | |
| id: node-version | |
| working-directory: . | |
| run: echo "node-version=$(grep '^nodejs ' .tool-versions | awk '{print $2}')" >> $GITHUB_OUTPUT | |
| shell: bash | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ steps.node-version.outputs.node-version }} | |
| cache: "npm" | |
| cache-dependency-path: docs/package.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run ESLint | |
| run: npm run lint | |
| - name: Run Prettier (check) | |
| run: npm run format |