Skip to content

Commit 14da91d

Browse files
committed
Fix action cache
1 parent 951831b commit 14da91d

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

.github/workflows/cedar-validation.yaml

+18-3
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,31 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
16+
- name: Restore cached crates
17+
id: cargo-cache-restore
18+
uses: actions/cache/restore@v4
19+
with:
20+
path: |
21+
~/.cargo/bin/
22+
~/.cargo/registry/index/
23+
~/.cargo/registry/cache/
24+
~/.cargo/git/db/
25+
~/.cargo/.crates.toml
26+
~/.cargo/.crates2.json
27+
key: ${{ runner.os }}-cargo-cedar-${{env.CEDAR_VERSION}}
1628
- name: Install cedar-cli
1729
run: cargo install cedar-policy-cli@${{env.CEDAR_VERSION}}
18-
- uses: actions/cache@v4
30+
- name: Save cached crates
31+
id: cargo-cache-save
32+
uses: actions/cache/save@v4
1933
with:
2034
path: |
2135
~/.cargo/bin/
2236
~/.cargo/registry/index/
2337
~/.cargo/registry/cache/
2438
~/.cargo/git/db/
25-
target/
26-
key: ${{ runner.os }}-cargo-${{env.CEDAR_VERSION}}
39+
~/.cargo/.crates.toml
40+
~/.cargo/.crates2.json
41+
key: ${{ runner.os }}-cargo-cedar-${{env.CEDAR_VERSION}}
2742
- name: Validate Policies
2843
run: make validate-policies

.github/workflows/golangci-lint.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: golangci-lint
1+
name: Lint
22
on:
33
push:
44
branches:

.github/workflows/unit-tests.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: unit tests
1+
name: Test and Build
22
on:
33
push:
44
branches: [ main ]
@@ -13,9 +13,9 @@ jobs:
1313
go-version: [ '1.23' ]
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Setup Go ${{ matrix.go-version }}
18-
uses: actions/setup-go@v4
18+
uses: actions/setup-go@v5
1919
with:
2020
go-version: ${{ matrix.go-version }}
2121

internal/schema/convert/openapi.go

-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,6 @@ func parseCRDProperties(depth int, properties map[string]spec.Schema) (map[strin
507507
continue
508508
}
509509

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

0 commit comments

Comments
 (0)