Skip to content

docs: Updates on Setup and Demo documentation (#5) #5

docs: Updates on Setup and Demo documentation (#5)

docs: Updates on Setup and Demo documentation (#5) #5

name: Cedar Validation
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CEDAR_VERSION: 4.2.1
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