Skip to content

Commit

Permalink
Fix action cache
Browse files Browse the repository at this point in the history
  • Loading branch information
micahhausler committed Nov 8, 2024
1 parent 951831b commit 14da91d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/cedar-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,31 @@ jobs:
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}}
- uses: actions/cache@v4
- 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/
target/
key: ${{ runner.os }}-cargo-${{env.CEDAR_VERSION}}
~/.cargo/.crates.toml
~/.cargo/.crates2.json
key: ${{ runner.os }}-cargo-cedar-${{env.CEDAR_VERSION}}
- name: Validate Policies
run: make validate-policies
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: golangci-lint
name: Lint
on:
push:
branches:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: unit tests
name: Test and Build
on:
push:
branches: [ main ]
Expand All @@ -13,9 +13,9 @@ jobs:
go-version: [ '1.23' ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

Expand Down
1 change: 0 additions & 1 deletion internal/schema/convert/openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,6 @@ func parseCRDProperties(depth int, properties map[string]spec.Schema) (map[strin
continue
}

// klog.V(2).Infof("Skipping %s attr %s object", k, v.Type[0])
if v.Properties != nil {
attrs, err := parseCRDProperties(depth-1, v.Properties)
if err != nil {
Expand Down

0 comments on commit 14da91d

Please sign in to comment.