Skip to content

Added request recording and profiling handlers #12

Added request recording and profiling handlers

Added request recording and profiling handlers #12

name: Cedar Validation
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CEDAR_VERSION: 4.2.2
jobs:
cedar:
name: Cedar
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Restore cached crates
id: cargo-cache-restore
uses: actions/cache/restore@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.cargo/.crates.toml
~/.cargo/.crates2.json
key: ${{ runner.os }}-cargo-cedar-${{env.CEDAR_VERSION}}
- name: Install cedar-cli
run: cargo install cedar-policy-cli@${{env.CEDAR_VERSION}}
- name: Save cached crates
id: cargo-cache-save
uses: actions/cache/save@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.cargo/.crates.toml
~/.cargo/.crates2.json
key: ${{ runner.os }}-cargo-cedar-${{env.CEDAR_VERSION}}
- name: Validate Policies
run: make validate-policies