Added request recording and profiling handlers #12
This file contains 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: 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 |